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.

118 lines
4.1KB

  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 = json['tbActivityExtendTypeExternalTable'];
  53. tbActivityExtendTypeObjectType = json['tbActivityExtendTypeObjectType'];
  54. tbActivityExtendTypeCondition = json['tbActivityExtendTypeCondition'];
  55. relationTable = json['relationTable'];
  56. foreignKey = json['foreignKey'];
  57. isGuidelineUsing = json['isGuidelineUsing'];
  58. isMandatory = json['isMandatory'];
  59. groupName = json['groupName'];
  60. if (json['tbActivityExtendTypeDropDownDTOList'] != null) {
  61. tbActivityExtendTypeDropDownDTOList = <TbActivityExtendTypeDropDownDTO>[];
  62. json['tbActivityExtendTypeDropDownDTOList'].forEach((v) {
  63. tbActivityExtendTypeDropDownDTOList?.add(new TbActivityExtendTypeDropDownDTO.fromJson(v));
  64. });
  65. }
  66. }
  67. Map<String, dynamic> toJson() {
  68. final Map<String, dynamic> data = new Map<String, dynamic>();
  69. data['id'] = this.id;
  70. data['name'] = this.name;
  71. data['unit'] = this.unit;
  72. data['description'] = this.description;
  73. data['activityTypeId'] = this.activityTypeId;
  74. data['tbCustomerId'] = this.tbCustomerId;
  75. data['tbControlTypeId'] = this.tbControlTypeId;
  76. data['tbControlTypeName'] = this.tbControlTypeName;
  77. data['tbActivityExtendTypeId'] = this.tbActivityExtendTypeId;
  78. data['tbActivityExtendTypeName'] = this.tbActivityExtendTypeName;
  79. data['tbActivityExtendTypeExternalTable'] = this.tbActivityExtendTypeExternalTable;
  80. data['tbActivityExtendTypeObjectType'] = this.tbActivityExtendTypeObjectType;
  81. data['tbActivityExtendTypeCondition'] = this.tbActivityExtendTypeCondition;
  82. data['relationTable'] = this.relationTable;
  83. data['foreignKey'] = this.foreignKey;
  84. data['isGuidelineUsing'] = this.isGuidelineUsing;
  85. data['isMandatory'] = this.isMandatory;
  86. data['groupName'] = this.groupName;
  87. if (this.tbActivityExtendTypeDropDownDTOList != null) {
  88. data['tbActivityExtendTypeDropDownDTOList'] = this.tbActivityExtendTypeDropDownDTOList?.map((v) => v.toJson()).toList();
  89. }
  90. return data;
  91. }
  92. }
  93. class TbActivityExtendTypeDropDownDTO {
  94. int? id;
  95. String? description;
  96. String? name;
  97. TbActivityExtendTypeDropDownDTO({this.id, this.description, this.name});
  98. TbActivityExtendTypeDropDownDTO.fromJson(Map<String, dynamic> json) {
  99. id = json['id'];
  100. description = json['description'];
  101. name = json['name'];
  102. }
  103. Map<String, dynamic> toJson() {
  104. final Map<String, dynamic> data = new Map<String, dynamic>();
  105. data['id'] = this.id;
  106. data['description'] = this.description;
  107. data['name'] = this.name;
  108. return data;
  109. }
  110. }