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

#import "RCTLSUtils.h"
@implementation RCTLSUtils
+ (NSArray<NSDictionary *> *)LSArrayFromNativeModels:(NSArray<id<RCTNativeModel>> *)models {
    NSMutableArray *nativeModels = [NSMutableArray array];
    for (id<RCTNativeModel> model in models) {
        [nativeModels addObject:[model reactNativeRepresentation]];
    }

    return nativeModels;
}
@end
