pda_patrol_time_list.dart 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. class PdaPatrolTimeList {
  2. int? code;
  3. String? msg;
  4. List<Data>? data;
  5. PdaPatrolTimeList({this.code, this.msg, this.data});
  6. PdaPatrolTimeList.fromJson(Map<String, dynamic> json) {
  7. code = json['code'];
  8. msg = json['msg'];
  9. if (json['data'] != null) {
  10. data = <Data>[];
  11. json['data'].forEach((v) {
  12. data!.add(new Data.fromJson(v));
  13. });
  14. }
  15. }
  16. Map<String, dynamic> toJson() {
  17. final Map<String, dynamic> data = new Map<String, dynamic>();
  18. data['code'] = this.code;
  19. data['msg'] = this.msg;
  20. if (this.data != null) {
  21. data['data'] = this.data!.map((v) => v.toJson()).toList();
  22. }
  23. return data;
  24. }
  25. }
  26. class Data {
  27. String? dateTime;
  28. List<DataList>? dataList;
  29. String? platformid;
  30. String? platformName;
  31. Data({this.dateTime, this.dataList, this.platformid, this.platformName});
  32. Data.fromJson(Map<String, dynamic> json) {
  33. dateTime = json['dateTime'];
  34. if (json['dataList'] != null) {
  35. dataList = <DataList>[];
  36. json['dataList'].forEach((v) {
  37. dataList!.add(new DataList.fromJson(v));
  38. });
  39. }
  40. platformid = json['platformid'];
  41. platformName = json['platformName'];
  42. }
  43. Map<String, dynamic> toJson() {
  44. final Map<String, dynamic> data = new Map<String, dynamic>();
  45. data['dateTime'] = this.dateTime;
  46. if (this.dataList != null) {
  47. data['dataList'] = this.dataList!.map((v) => v.toJson()).toList();
  48. }
  49. data['platformid'] = this.platformid;
  50. data['platformName'] = this.platformName;
  51. return data;
  52. }
  53. }
  54. class DataList {
  55. String? id;
  56. String? created;
  57. String? createTime;
  58. String? startTime;
  59. String? endTime;
  60. String? postName;
  61. String? platformId;
  62. String? sortd;
  63. int? totalNumber;
  64. int? finishNumber;
  65. String? patrolPersons;
  66. int? errorNumber;
  67. DataList(
  68. {this.id,
  69. this.created,
  70. this.createTime,
  71. this.startTime,
  72. this.endTime,
  73. this.postName,
  74. this.platformId,
  75. this.sortd,
  76. this.totalNumber,
  77. this.finishNumber,
  78. this.patrolPersons,
  79. this.errorNumber});
  80. DataList.fromJson(Map<String, dynamic> json) {
  81. id = json['id'];
  82. created = json['created'];
  83. createTime = json['createTime'];
  84. startTime = json['startTime'];
  85. endTime = json['endTime'];
  86. postName = json['postName'];
  87. platformId = json['platformId'];
  88. sortd = json['sortd'];
  89. totalNumber = json['totalNumber'];
  90. finishNumber = json['finishNumber'];
  91. patrolPersons = json['patrolPersons'];
  92. errorNumber = json['errorNumber'];
  93. }
  94. Map<String, dynamic> toJson() {
  95. final Map<String, dynamic> data = new Map<String, dynamic>();
  96. data['id'] = this.id;
  97. data['created'] = this.created;
  98. data['createTime'] = this.createTime;
  99. data['startTime'] = this.startTime;
  100. data['endTime'] = this.endTime;
  101. data['postName'] = this.postName;
  102. data['platformId'] = this.platformId;
  103. data['sortd'] = this.sortd;
  104. data['totalNumber'] = this.totalNumber;
  105. data['finishNumber'] = this.finishNumber;
  106. data['patrolPersons'] = this.patrolPersons;
  107. data['errorNumber'] = this.errorNumber;
  108. return data;
  109. }
  110. }