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

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

@implementation LSPanelistAchievement (RCTNativeModel)
- (NSDictionary *)reactNativeRepresentation {
    
    return @{
             @"name":RCTNullIfNil(self.name),
             @"points":@(RCTZeroIfNaN(self.points)),
             @"date":RCTNullIfNil(self.dateString),
             @"surveyId": RCTNullIfNil(self.surveyId)
             };
}
@end
