import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/garage_sale_rent_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/garage_sale_rent_entity.g.dart'; @JsonSerializable() class GarageSaleRentEntity { int? count; int? page; int? limit; @JSONField(name: "count_page") int? countPage; List? list; GarageSaleRentEntity(); factory GarageSaleRentEntity.fromJson(Map json) => $GarageSaleRentEntityFromJson(json); Map toJson() => $GarageSaleRentEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class GarageSaleRentList { int? id; String? title; int? price; List? resources; @JSONField(name: "created_at") String? createdAt; bool? liked; @JSONField(name: "likes_count") int? likesCount; GarageSaleRentListAccount? account; GarageSaleRentList(); factory GarageSaleRentList.fromJson(Map json) => $GarageSaleRentListFromJson(json); Map toJson() => $GarageSaleRentListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class GarageSaleRentListAccount { int? id; String? name; String? avatar; GarageSaleRentListAccount(); factory GarageSaleRentListAccount.fromJson(Map json) => $GarageSaleRentListAccountFromJson(json); Map toJson() => $GarageSaleRentListAccountToJson(this); @override String toString() { return jsonEncode(this); } }