1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. class CardInfo {
  2. // @ApiModelProperty(value = "农机Id")
  3. String? machineryId;
  4. // @ApiModelProperty(value = "名称")
  5. String? name;
  6. // @ApiModelProperty(value = "农机类型")
  7. String? typeId;
  8. // @ApiModelProperty(value = "类型名称")
  9. String? typeName;
  10. // @ApiModelProperty(value = "农机价格")
  11. int? price;
  12. // @ApiModelProperty(value = "主图")
  13. String? thumb;
  14. // @ApiModelProperty(value = "当前位置")
  15. String? location;
  16. // @ApiModelProperty(value = "距离")
  17. double? distance;
  18. // @ApiModelProperty(value = "机构ID")
  19. String? orgId;
  20. // @ApiModelProperty(value = "机构名称")
  21. String? orgName;
  22. // @ApiModelProperty(value = "工作状态")
  23. String? jobStatus;
  24. // @ApiModelProperty(value = "状态")
  25. int? status;
  26. // @ApiModelProperty(value = "内容详情")
  27. late List<dynamic> contentList;
  28. // @ApiModelProperty(value = "图片列表")
  29. late List<dynamic> imagesList;
  30. CardInfo();
  31. CardInfo.fromJson(Map<String, dynamic> json)
  32. : machineryId = json["machineryId"],
  33. name = json["name"],
  34. typeId = json["typeId"],
  35. typeName = json["typeName"],
  36. price = json["price"],
  37. thumb = json["thumb"],
  38. location = json["location"],
  39. distance = json["distance"],
  40. orgId = json["orgId"],
  41. orgName = json["orgName"],
  42. jobStatus = json["jobStatus"],
  43. status = json["status"],
  44. contentList = json["contentList"],
  45. imagesList = json["imagesList"];
  46. Map<String, dynamic> toJson() => {
  47. 'machineryId': machineryId,
  48. 'name': name,
  49. 'typeId': typeId,
  50. 'typeName': typeName,
  51. 'price': price,
  52. 'thumb': thumb,
  53. 'location': location,
  54. 'distance': distance,
  55. 'orgId': orgId,
  56. 'orgName': orgName,
  57. 'jobStatus': jobStatus,
  58. 'status': status,
  59. 'contentList': contentList,
  60. 'imagesList': imagesList,
  61. };
  62. }