garage_sale_rent_detail_entity.dart 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import 'package:domain/generated/json/base/json_field.dart';
  2. import 'package:domain/generated/json/garage_sale_rent_detail_entity.g.dart';
  3. import 'dart:convert';
  4. export 'package:domain/generated/json/garage_sale_rent_detail_entity.g.dart';
  5. @JsonSerializable()
  6. class GarageSaleRentDetailEntity {
  7. int? id;
  8. String? title;
  9. int? price;
  10. String? description;
  11. List<String>? resources;
  12. @JSONField(name: "created_at")
  13. String? createdAt;
  14. GarageSaleRentDetailAccount? account;
  15. GarageSaleRentDetailEntity();
  16. factory GarageSaleRentDetailEntity.fromJson(Map<String, dynamic> json) => $GarageSaleRentDetailEntityFromJson(json);
  17. Map<String, dynamic> toJson() => $GarageSaleRentDetailEntityToJson(this);
  18. @override
  19. String toString() {
  20. return jsonEncode(this);
  21. }
  22. }
  23. @JsonSerializable()
  24. class GarageSaleRentDetailAccount {
  25. int? id;
  26. String? name;
  27. String? avatar;
  28. GarageSaleRentDetailAccount();
  29. factory GarageSaleRentDetailAccount.fromJson(Map<String, dynamic> json) => $GarageSaleRentDetailAccountFromJson(json);
  30. Map<String, dynamic> toJson() => $GarageSaleRentDetailAccountToJson(this);
  31. @override
  32. String toString() {
  33. return jsonEncode(this);
  34. }
  35. }