//
//  LSSurvey+RCTNativeModel.m
//  ReactLightspeedSDK
//
//  Created by marc matta on 10/13/16.
//  Copyright © 2016 com.lightspeed. All rights reserved.
//

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

@implementation LSSurvey (RCTNativeModel)
 
- (NSDictionary *)reactNativeRepresentation {
    return @{
             @"surveyId" : @(RCTZeroIfNaN(self.surveyId)),
             @"gtmSurveyId" : @(RCTZeroIfNaN(self.gtmSurveyId)),
             @"surveyName" : RCTNullIfNil(self.surveyName),
             @"surveyDescription": RCTNullIfNil(self.surveyDescription),
             @"surveyLength" : @(RCTZeroIfNaN(self.surveyLength)),
             @"surveyUrl" : RCTNullIfNil(self.surveyUrl),
             @"resultType" : RCTNullIfNil(self.resultType),
             @"awardMessage" : RCTNullIfNil(self.awardMessage),
             @"screenAwardMessage" : RCTNullIfNil(self.screenAwardMessage),
             @"lmSampleId" : @(RCTZeroIfNaN(self.lmSampleId)),
             @"lmQuotaId" : @(RCTZeroIfNaN(self.lmQuotaId)),
             @"isSamSample" : @(self.isSamSample),
             @"activityType": RCTNullIfNil(self.activityType),
             @"surveyAppType" : @(self.surveyAppType),
             @"surveyType":RCTNullIfNil(self.surveyType)
             };
}
@end
