property_sale_rent_entity.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/property_sale_rent_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/property_sale_rent_entity.g.dart';
  5. @JsonSerializable()
  6. class PropertySaleRentEntity {
  7. int? count;
  8. int? page;
  9. int? limit;
  10. @JSONField(name: "count_page")
  11. int? countPage;
  12. List<PropertySaleRentList>? list;
  13. PropertySaleRentEntity();
  14. factory PropertySaleRentEntity.fromJson(Map<String, dynamic> json) => $PropertySaleRentEntityFromJson(json);
  15. Map<String, dynamic> toJson() => $PropertySaleRentEntityToJson(this);
  16. @override
  17. String toString() {
  18. return jsonEncode(this);
  19. }
  20. }
  21. @JsonSerializable()
  22. class PropertySaleRentList {
  23. int? id;
  24. int? type;
  25. String? title;
  26. String? price;
  27. @JSONField(name: "price_show")
  28. String? priceShow;
  29. String? units;
  30. @JSONField(name: "created_at")
  31. String? createdAt;
  32. PropertySaleRentList();
  33. factory PropertySaleRentList.fromJson(Map<String, dynamic> json) => $PropertySaleRentListFromJson(json);
  34. Map<String, dynamic> toJson() => $PropertySaleRentListToJson(this);
  35. @override
  36. String toString() {
  37. return jsonEncode(this);
  38. }
  39. }