reply_image_item.dart 719 B

12345678910111213141516171819202122232425262728
  1. /// 图片上传处理用的数据对象
  2. /// 发帖和回帖都用到了
  3. class ReplyImageItem {
  4. String? fileId; // 上传后的id
  5. String? fileLocalPath; // 没有上次的本地地址
  6. int? width; //图片实际宽度
  7. int? height; //图片实际高度
  8. int? showWidth; //图片展现宽度
  9. int? showHeight; //图片展现高度
  10. ReplyImageItem(
  11. {this.fileId,
  12. this.fileLocalPath,
  13. this.width,
  14. this.height,
  15. this.showHeight,
  16. this.showWidth});
  17. Map<String, dynamic> toJson() => {
  18. "fileId": fileId,
  19. "fileLocalPath": fileLocalPath,
  20. "width": width,
  21. "height": height,
  22. "showHeight": showHeight,
  23. "showWidth": showWidth,
  24. };
  25. }