import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/myposts_sale_rent_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/myposts_sale_rent_entity.g.dart'; @JsonSerializable() class MypostsSaleRentEntity { int? count; int? page; int? limit; @JSONField(name: "count_page") int? countPage; List? list; MypostsSaleRentEntity(); factory MypostsSaleRentEntity.fromJson(Map json) => $MypostsSaleRentEntityFromJson(json); Map toJson() => $MypostsSaleRentEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class MypostsSaleRentList { int? id; String? title; int? price; List? resources; @JSONField(name: "created_at") String? createdAt; @JSONField(name: "likes_count") int? likesCount; MypostsSaleRentList(); factory MypostsSaleRentList.fromJson(Map json) => $MypostsSaleRentListFromJson(json); Map toJson() => $MypostsSaleRentListToJson(this); @override String toString() { return jsonEncode(this); } }