//
//  LSSweepsWinner+RCTNativeModel.m
//  ReactLightspeedSDK
//
//  Created by marc matta on 12/7/16.
//  Copyright © 2016 com.lightspeed. All rights reserved.
//

#import "LSSweepsWinner+RCTNativeModel.h"
#import <React/RCTUtils.h>

@implementation LSSweepsWinner (RCTNativeModel)
- (NSDictionary *)reactNativeRepresentation {
    return @{
             @"name":RCTNullIfNil(self.name),
             @"location":RCTNullIfNil(self.location),
             @"currency":RCTNullIfNil(self.currency),
             @"amount":@(RCTZeroIfNaN(self.amount))
             };
}

@end
