ExtendContent.dart 1018B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. class ExtendContent {
  2. // 租户号
  3. String? extId;
  4. // 扩展对象类型;message消息表 bannar轮播图 info资讯
  5. String? targetType;
  6. // 拓展对象Id
  7. String? targetId;
  8. // 内容类型;text文本 image图片
  9. String? contentType;
  10. // 内容
  11. String? content;
  12. // 排序
  13. int? sort;
  14. // 创建时间
  15. String? createDate;
  16. ExtendContent();
  17. ExtendContent.simple({ this.content, this.contentType });
  18. ExtendContent.fromJson(Map<String, dynamic> json)
  19. : extId = json["extId"],
  20. targetType = json["targetType"],
  21. targetId = json["targetId"],
  22. contentType = json["contentType"],
  23. content = json["content"],
  24. sort = json["sort"],
  25. createDate = json["createDate"];
  26. Map<String, dynamic> toJson() => {
  27. 'extId' : extId,
  28. 'targetType' : targetType,
  29. 'targetId' : targetId,
  30. 'contentType' : contentType,
  31. 'content' : content,
  32. 'sort' : sort,
  33. 'createDate' : createDate,
  34. };
  35. }