upload_entity.dart 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. class UploadEntity {
  2. String? msg;
  3. String? fileName;
  4. int? code;
  5. String? newFileName;
  6. String? url;
  7. String? originalFilename;
  8. UploadEntity(
  9. {this.msg,
  10. this.fileName,
  11. this.code,
  12. this.newFileName,
  13. this.url,
  14. this.originalFilename});
  15. UploadEntity.fromJson(Map<String, dynamic> json) {
  16. msg = json['msg'];
  17. fileName = json['fileName'];
  18. code = json['code'];
  19. newFileName = json['newFileName'];
  20. url = json['url'];
  21. originalFilename = json['originalFilename'];
  22. }
  23. Map<String, dynamic> toJson() {
  24. final Map<String, dynamic> data = new Map<String, dynamic>();
  25. data['msg'] = this.msg;
  26. data['fileName'] = this.fileName;
  27. data['code'] = this.code;
  28. data['newFileName'] = this.newFileName;
  29. data['url'] = this.url;
  30. data['originalFilename'] = this.originalFilename;
  31. return data;
  32. }
  33. }