//
//  LSSurveyInfo+RCTNativeModel.m
//  ReactLightspeedSDK
//
//  Created by marc matta on 8/28/17.
//  Copyright © 2017 com.lightspeed. All rights reserved.
//

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

@implementation LSSurveyInfo (RCTNativeModel)

- (NSDictionary *)reactNativeRepresentation {
    return @{
             @"surveyId" : @(RCTZeroIfNaN(self.surveyId)),
             @"gtmSurveyId" : @(RCTZeroIfNaN(self.gtmSurveyId)),
             @"surveyName" : RCTNullIfNil(self.surveyName),
             @"surveyDescription": RCTNullIfNil(self.surveyDescription),
             @"surveyUrl" : RCTNullIfNil(self.surveyUrl),
             @"activityType": RCTNullIfNil(self.activityType),
             @"surveyAppType" : @(self.surveyAppType),
             @"surveyType":RCTNullIfNil(self.surveyType)
             };
}
@end
