ImgVO.dart 725 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import 'package:json2dart_safe/json2dart.dart';
  2. class FileUrls {
  3. int? imgId;
  4. String? url;
  5. int? step;
  6. @override
  7. String toString(){
  8. return 'FilrUrls{imgId: $imgId,url: $url,step: $step}';
  9. }
  10. FileUrls({
  11. this.imgId,
  12. this.url,
  13. this.step,
  14. });
  15. Map<String, dynamic> toJson() {
  16. return Map<String, dynamic>()
  17. ..put('imgId', this.imgId)
  18. ..put('url', this.url)
  19. ..put('step', this.step);
  20. }
  21. FileUrls.fromJson(Map<String, dynamic> json) {
  22. if (null != json['imgId']) {
  23. this.imgId = json.asInt('imgId');
  24. }
  25. if (null != json['url']) {
  26. this.url = json.asString('url');
  27. }
  28. if (null != json['step']) {
  29. this.step = json.asInt('step');
  30. }
  31. }
  32. }