You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
4.2KB

  1. class ActionUIField {
  2. int id;
  3. String name;
  4. String unit;
  5. String description;
  6. int activityTypeId;
  7. int tbCustomerId;
  8. int tbControlTypeId;
  9. String tbControlTypeName;
  10. int tbActivityExtendTypeId;
  11. String tbActivityExtendTypeName;
  12. String tbActivityExtendTypeExternalTable;
  13. String tbActivityExtendTypeObjectType;
  14. String tbActivityExtendTypeCondition;
  15. String relationTable;
  16. String foreignKey;
  17. bool isGuidelineUsing;
  18. bool isMandatory;
  19. String groupName;
  20. List<TbActivityExtendTypeDropDownDTO> tbActivityExtendTypeDropDownDTOList;
  21. ActionUIField(
  22. {this.id,
  23. this.name,
  24. this.unit,
  25. this.description,
  26. this.activityTypeId,
  27. this.tbCustomerId,
  28. this.tbControlTypeId,
  29. this.tbControlTypeName,
  30. this.tbActivityExtendTypeId,
  31. this.tbActivityExtendTypeName,
  32. this.tbActivityExtendTypeExternalTable,
  33. this.tbActivityExtendTypeObjectType,
  34. this.tbActivityExtendTypeCondition,
  35. this.relationTable,
  36. this.foreignKey,
  37. this.isGuidelineUsing,
  38. this.isMandatory,
  39. this.groupName,
  40. this.tbActivityExtendTypeDropDownDTOList});
  41. ActionUIField.fromJson(Map<String, dynamic> json) {
  42. id = json['id'];
  43. name = json['name'];
  44. unit = json['unit'];
  45. description = json['description'];
  46. activityTypeId = json['activityTypeId'];
  47. tbCustomerId = json['tbCustomerId'];
  48. tbControlTypeId = json['tbControlTypeId'];
  49. tbControlTypeName = json['tbControlTypeName'];
  50. tbActivityExtendTypeId = json['tbActivityExtendTypeId'];
  51. tbActivityExtendTypeName = json['tbActivityExtendTypeName'];
  52. tbActivityExtendTypeExternalTable =
  53. json['tbActivityExtendTypeExternalTable'];
  54. tbActivityExtendTypeObjectType = json['tbActivityExtendTypeObjectType'];
  55. tbActivityExtendTypeCondition = json['tbActivityExtendTypeCondition'];
  56. relationTable = json['relationTable'];
  57. foreignKey = json['foreignKey'];
  58. isGuidelineUsing = json['isGuidelineUsing'];
  59. isMandatory = json['isMandatory'];
  60. groupName = json['groupName'];
  61. if (json['tbActivityExtendTypeDropDownDTOList'] != null) {
  62. tbActivityExtendTypeDropDownDTOList =
  63. new List<TbActivityExtendTypeDropDownDTO>();
  64. json['tbActivityExtendTypeDropDownDTOList'].forEach((v) {
  65. tbActivityExtendTypeDropDownDTOList
  66. .add(new TbActivityExtendTypeDropDownDTO.fromJson(v));
  67. });
  68. }
  69. }
  70. Map<String, dynamic> toJson() {
  71. final Map<String, dynamic> data = new Map<String, dynamic>();
  72. data['id'] = this.id;
  73. data['name'] = this.name;
  74. data['unit'] = this.unit;
  75. data['description'] = this.description;
  76. data['activityTypeId'] = this.activityTypeId;
  77. data['tbCustomerId'] = this.tbCustomerId;
  78. data['tbControlTypeId'] = this.tbControlTypeId;
  79. data['tbControlTypeName'] = this.tbControlTypeName;
  80. data['tbActivityExtendTypeId'] = this.tbActivityExtendTypeId;
  81. data['tbActivityExtendTypeName'] = this.tbActivityExtendTypeName;
  82. data['tbActivityExtendTypeExternalTable'] =
  83. this.tbActivityExtendTypeExternalTable;
  84. data['tbActivityExtendTypeObjectType'] =
  85. this.tbActivityExtendTypeObjectType;
  86. data['tbActivityExtendTypeCondition'] = this.tbActivityExtendTypeCondition;
  87. data['relationTable'] = this.relationTable;
  88. data['foreignKey'] = this.foreignKey;
  89. data['isGuidelineUsing'] = this.isGuidelineUsing;
  90. data['isMandatory'] = this.isMandatory;
  91. data['groupName'] = this.groupName;
  92. if (this.tbActivityExtendTypeDropDownDTOList != null) {
  93. data['tbActivityExtendTypeDropDownDTOList'] = this
  94. .tbActivityExtendTypeDropDownDTOList
  95. .map((v) => v.toJson())
  96. .toList();
  97. }
  98. return data;
  99. }
  100. }
  101. class TbActivityExtendTypeDropDownDTO {
  102. int id;
  103. String description;
  104. String name;
  105. TbActivityExtendTypeDropDownDTO({this.id, this.description, this.name});
  106. TbActivityExtendTypeDropDownDTO.fromJson(Map<String, dynamic> json) {
  107. id = json['id'];
  108. description = json['description'];
  109. name = json['name'];
  110. }
  111. Map<String, dynamic> toJson() {
  112. final Map<String, dynamic> data = new Map<String, dynamic>();
  113. data['id'] = this.id;
  114. data['description'] = this.description;
  115. data['name'] = this.name;
  116. return data;
  117. }
  118. }