dict_info.dart 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'dict_info.g.dart';
  3. ///字典信息
  4. @JsonSerializable()
  5. class DictInfo {
  6. @JsonKey(name: "createBy")
  7. final String? createBy;
  8. @JsonKey(name: "createTime")
  9. final String? createTime;
  10. @JsonKey(name: "updateBy")
  11. final String? updateBy;
  12. @JsonKey(name: "updateTime")
  13. final String? updateTime;
  14. @JsonKey(name: "remark")
  15. final String? remark;
  16. @JsonKey(name: "dictCode")
  17. final int? dictCode;
  18. @JsonKey(name: "dictSort")
  19. final int? dictSort;
  20. @JsonKey(name: "dictLabel")
  21. final String? dictLabel;
  22. @JsonKey(name: "dictValue")
  23. final String? dictValue;
  24. @JsonKey(name: "dictType")
  25. final String? dictType;
  26. @JsonKey(name: "cssClass")
  27. final String? cssClass;
  28. @JsonKey(name: "listClass")
  29. final String? listClass;
  30. @JsonKey(name: "isDefault")
  31. final String? isDefault;
  32. @JsonKey(name: "status")
  33. final String? status;
  34. @JsonKey(name: "default")
  35. final bool? def;
  36. DictInfo ({
  37. this.createBy,
  38. this.createTime,
  39. this.updateBy,
  40. this.updateTime,
  41. this.remark,
  42. this.dictCode,
  43. this.dictSort,
  44. this.dictLabel,
  45. this.dictValue,
  46. this.dictType,
  47. this.cssClass,
  48. this.listClass,
  49. this.isDefault,
  50. this.status,
  51. this.def,
  52. });
  53. factory DictInfo.fromJson(Map<String, dynamic> json) {
  54. return _$DictInfoFromJson(json);
  55. }
  56. Map<String, dynamic> toJson() {
  57. return _$DictInfoToJson(this);
  58. }
  59. }