message_box_s_list_entity.dart 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. class MessageBoxSList {
  2. int? code;
  3. String? msg;
  4. List<Data>? data;
  5. MessageBoxSList({this.code, this.msg, this.data});
  6. MessageBoxSList.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? id;
  28. String? describeNode;
  29. String? projectNo;
  30. String? projectName;
  31. String? plantformId;
  32. Null? plantformName;
  33. String? job;
  34. String? loginName;
  35. String? createTime;
  36. String? type;
  37. String? status;
  38. Null? processType;
  39. String? directionalUrl;
  40. String? moduleType;
  41. Data(
  42. {this.id,
  43. this.describeNode,
  44. this.projectNo,
  45. this.projectName,
  46. this.plantformId,
  47. this.plantformName,
  48. this.job,
  49. this.loginName,
  50. this.createTime,
  51. this.type,
  52. this.status,
  53. this.processType,
  54. this.directionalUrl,
  55. this.moduleType});
  56. Data.fromJson(Map<String, dynamic> json) {
  57. id = json['id'];
  58. describeNode = json['describeNode'];
  59. projectNo = json['projectNo'];
  60. projectName = json['projectName'];
  61. plantformId = json['plantformId'];
  62. plantformName = json['plantformName'];
  63. job = json['job'];
  64. loginName = json['loginName'];
  65. createTime = json['createTime'];
  66. type = json['type'];
  67. status = json['status'];
  68. processType = json['processType'];
  69. directionalUrl = json['directionalUrl'];
  70. moduleType = json['moduleType'];
  71. }
  72. Map<String, dynamic> toJson() {
  73. final Map<String, dynamic> data = new Map<String, dynamic>();
  74. data['id'] = this.id;
  75. data['describeNode'] = this.describeNode;
  76. data['projectNo'] = this.projectNo;
  77. data['projectName'] = this.projectName;
  78. data['plantformId'] = this.plantformId;
  79. data['plantformName'] = this.plantformName;
  80. data['job'] = this.job;
  81. data['loginName'] = this.loginName;
  82. data['createTime'] = this.createTime;
  83. data['type'] = this.type;
  84. data['status'] = this.status;
  85. data['processType'] = this.processType;
  86. data['directionalUrl'] = this.directionalUrl;
  87. data['moduleType'] = this.moduleType;
  88. return data;
  89. }
  90. }