import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/repair_service_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/repair_service_entity.g.dart'; @JsonSerializable() class RepairServiceEntity { int? count; int? page; int? limit; @JSONField(name: "count_page") int? countPage; List? list; RepairServiceEntity(); factory RepairServiceEntity.fromJson(Map json) => $RepairServiceEntityFromJson(json); Map toJson() => $RepairServiceEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class RepairServiceList { int? id; String? name; @JSONField(name: "likes_count") int? likesCount; bool? liked; RepairServiceListMerchant? merchant; RepairServiceListCategory? category; RepairServiceList(); factory RepairServiceList.fromJson(Map json) => $RepairServiceListFromJson(json); Map toJson() => $RepairServiceListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class RepairServiceListMerchant { int? id; String? name; RepairServiceListMerchant(); factory RepairServiceListMerchant.fromJson(Map json) => $RepairServiceListMerchantFromJson(json); Map toJson() => $RepairServiceListMerchantToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class RepairServiceListCategory { int? id; String? name; String? type; RepairServiceListCategory(); factory RepairServiceListCategory.fromJson(Map json) => $RepairServiceListCategoryFromJson(json); Map toJson() => $RepairServiceListCategoryToJson(this); @override String toString() { return jsonEncode(this); } }