1234567891011121314151617181920212223242526272829303132333435363738 |
- //
- // SelectModel.m
- // smartRhino
- //
- // Created by tederen on 2019/11/23.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "SelectModel.h"
- @implementation SelectModel
- - (instancetype)initDict:(NSDictionary *)dict
- {
- if (self) {
- self.Nick = ISEmpty(dict[@"Nick"]) ? @"" : [dict objectForKey:@"Nick"];
- self.Phone = ISEmpty(dict[@"Phone"]) ? @"" : [dict objectForKey:@"Phone"];
- self.ImId = ISEmpty(dict[@"ImId"]) ? @"" : [dict objectForKey:@"ImId"];
- self.UserName = ISEmpty(dict[@"Name"]) ? @"" : [dict objectForKey:@"Name"];
- self.CreatedDate = ISEmpty(dict[@"CreatedDate"]) ? @"" : [dict objectForKey:@"CreatedDate"];
- self.LastModifiedDate = ISEmpty(dict[@"LastModifiedDate"]) ? @"" : [dict objectForKey:@"LastModifiedDate"];
- self.AvatarUrl = ISEmpty(dict[@"AvatarUrl"]) ? @"" : [dict objectForKey:@"AvatarUrl"];
- self.DepartmentName = ISEmpty(dict[@"DepartmentName"]) ? @"" : [dict objectForKey:@"DepartmentName"];
- self.SourceName = ISEmpty(dict[@"SourceName"]) ? @"" : [dict objectForKey:@"SourceName"];
- self.Guid = ISEmpty(dict[@"Guid"]) ? 0 : [[dict objectForKey:@"Guid"] integerValue];
- self.UserId = ISEmpty(dict[@"Id"]) ? 0 : [[dict objectForKey:@"Id"] integerValue];
- self.MiddleId = ISEmpty(dict[@"MiddleId"]) ? 0 : [[dict objectForKey:@"MiddleId"] integerValue];
- self.SourceType = ISEmpty(dict[@"SourceType"]) ? 0 : [[dict objectForKey:@"SourceType"] integerValue];
- self.SourceId = ISEmpty(dict[@"SourceId"]) ? 0 : [[dict objectForKey:@"SourceId"] integerValue];
- self.hasSon = ISEmpty(dict[@"hasSon"]) ? NO : [[dict objectForKey:@"hasSon"] boolValue];
- self.hadSelected = ISEmpty(dict[@"hadSelected"]) ? NO : [[dict objectForKey:@"hadSelected"] boolValue];
- self.IsDelete = ISEmpty(dict[@"IsDelete"]) ? NO : [[dict objectForKey:@"IsDelete"] boolValue];
- self.IsDisable = ISEmpty(dict[@"IsDisable"]) ? NO : [[dict objectForKey:@"IsDisable"] boolValue];
- self.Id = ISEmpty(dict[@"Id"]) ? 0 : [[dict objectForKey:@"Id"] integerValue];
- }
- return self;
- }
- @end
|