property_ioan_state.dart 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /// YApi QuickType插件生成,具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation
  2. import 'dart:convert';
  3. PropertyIoanState propertyIoanStateFromJson(String str) => PropertyIoanState.fromJson(json.decode(str));
  4. String propertyIoanStateToJson(PropertyIoanState data) => json.encode(data.toJson());
  5. class PropertyIoanState {
  6. PropertyIoanState({
  7. required this.offerTextInfoList,
  8. required this.lowestFloatingRate,
  9. required this.othersOfferingPic,
  10. required this.lowestFixedRate,
  11. required this.othersOfferingInfoList,
  12. });
  13. List<dynamic> offerTextInfoList;
  14. String lowestFloatingRate;
  15. String othersOfferingPic;
  16. String lowestFixedRate;
  17. List<dynamic> othersOfferingInfoList;
  18. factory PropertyIoanState.fromJson(Map<dynamic, dynamic> json) => PropertyIoanState(
  19. offerTextInfoList: List<dynamic>.from(json["offerTextInfoList"].map((x) => x)),
  20. lowestFloatingRate: json["lowestFloatingRate"],
  21. othersOfferingPic: json["othersOfferingPic"],
  22. lowestFixedRate: json["lowestFixedRate"],
  23. othersOfferingInfoList: List<dynamic>.from(json["othersOfferingInfoList"].map((x) => x)),
  24. );
  25. Map<dynamic, dynamic> toJson() => {
  26. "offerTextInfoList": List<dynamic>.from(offerTextInfoList.map((x) => x)),
  27. "lowestFloatingRate": lowestFloatingRate,
  28. "othersOfferingPic": othersOfferingPic,
  29. "lowestFixedRate": lowestFixedRate,
  30. "othersOfferingInfoList": List<dynamic>.from(othersOfferingInfoList.map((x) => x)),
  31. };
  32. }