FireNoticeModel.m 930 B

12345678910111213141516171819202122232425262728
  1. //
  2. // FireNoticeModel.m
  3. // Haishenghai-master
  4. //
  5. // Created by 刘云鸽 on 2019/3/26.
  6. // Copyright © 2019 Haishenghai intelligence network technology. All rights reserved.
  7. //
  8. #import "FireNoticeModel.h"
  9. @implementation FireNoticeModel
  10. +(FireNoticeModel *)parserWithDic:(NSDictionary *)dic{
  11. FireNoticeModel *model = [[FireNoticeModel alloc]init];
  12. model.gmtCreate = [dic objectForKey:@"gmtCreate"];
  13. model.troubleType = [dic objectForKey:@"troubleType"];
  14. model.deployment = [dic objectForKey:@"deployment"];
  15. model.location = [dic objectForKey:@"location"];
  16. model.regionName = [dic objectForKey:@"regionName"];
  17. model.deviceId = [dic objectForKey:@"deviceId"];
  18. model.deviceLocation = [dic objectForKey:@"deviceLocation"];
  19. model.deviceName = [dic objectForKey:@"deviceName"];
  20. model.ID = [dic objectForKey:@"id"];
  21. model.ifRead = [dic objectForKey:@"ifRead"];
  22. return model;
  23. }
  24. @end