property_ioan_state.dart 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. PropertyIoanState copyWith({
  33. List<dynamic>? offerTextInfoList,
  34. String? lowestFloatingRate,
  35. String? othersOfferingPic,
  36. String? lowestFixedRate,
  37. List<dynamic>? othersOfferingInfoList,
  38. }) {
  39. return PropertyIoanState(
  40. offerTextInfoList: offerTextInfoList ?? this.offerTextInfoList,
  41. lowestFloatingRate: lowestFloatingRate ?? this.lowestFloatingRate,
  42. othersOfferingPic: othersOfferingPic ?? this.othersOfferingPic,
  43. lowestFixedRate: lowestFixedRate ?? this.lowestFixedRate,
  44. othersOfferingInfoList:
  45. othersOfferingInfoList ?? this.othersOfferingInfoList,
  46. );
  47. }
  48. }