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

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

@implementation LSAnswerOption (RCTNativeModel)

- (NSDictionary *)reactNativeRepresentation {
    return @{
             @"text":RCTNullIfNil(self.text),
             @"code":@(RCTZeroIfNaN(self.code)),
             @"exclusive":@(self.exclusive),
             @"locked":@(self.locked)
             };
}
@end
