1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- //
- // 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
|