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

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

@implementation LSAchievement (RCTNativeModel)
- (NSDictionary *)reactNativeRepresentation {
    return @{
             @"name":RCTNullIfNil(self.name),
             @"percentage":@(RCTZeroIfNaN(self.percentage)),
             @"points":@(self.points),
             @"achieved":@(self.achieved)
             };
}

@end
