// // ASUserModel.m // Asteria // // Created by iOS on 2023/11/27. // #import "ASUserModel.h" @implementation ASUserModel + (NSDictionary *)mj_replacedKeyFromPropertyName { return @{ @"Id": @"id", @"is_subscribed": @"extension_attributes.is_subscribed", }; } + (NSDictionary *)mj_objectClassInArray{ return @{ @"addresses" : [ASAddressModel class] }; } @end @implementation ASAddressModel + (NSDictionary *)mj_replacedKeyFromPropertyName { return @{ @"Id": @"id", @"title": @"extension_attributes.title", @"country": @"extension_attributes.country", @"addressType": @"extension_attributes.address_type", }; } + (ASAddressModel *)defualtData { ASAddressModel *m = [ASAddressModel new]; m.title = @""; m.firstname = @""; m.lastname = @""; m.street = @[@""]; m.postcode = @""; m.city = @""; // m.region = @""; ASAddressReginModel *re = [ASAddressReginModel new]; re.region = @""; re.region_code = @""; re.region_id = @""; m.region = re; m.region_id = @""; m.telephone = @""; m.country = @"Unites States"; m.country_id = @"US"; return m; } @end @implementation ASAddressReginModel @end