/***************************************************************
 * Copyright © 2017 HERE Global B.V. All rights reserved. *
 **************************************************************/

#import "HereSDKAddressData+JSDictionary.h"

@implementation HereSDKAddressData (JSDictionary)

+ (HereSDKAddressData *)requestFromJSParams:(NSDictionary *)params
{
    return [HereSDKAddressData addressDataWithCountry:[params objectForKey:@"country"]
                                          countryCode:[params objectForKey:@"countryCode"]
                                                state:[params objectForKey:@"state"]
                                                county:[params objectForKey:@"county"]
                                                 city:[params objectForKey:@"city"]
                                                 district:[params objectForKey:@"district"]
                                                 subDistrict:[params objectForKey:@"subDistrict"]
                                               street:[params objectForKey:@"street"]
                                          houseNumber:[params objectForKey:@"houseNumber"]
                                           postalCode:[params objectForKey:@"postalCode"]
                                           building:[params objectForKey:@"building"]
                                               lineArray:[params objectForKey:@"lineArray"]];
}

@end
