import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/paid_service_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/paid_service_entity.g.dart'; @JsonSerializable() class PaidServiceEntity { int? count; int? page; int? limit; @JSONField(name: "count_page") int? countPage; List? list; PaidServiceEntity(); factory PaidServiceEntity.fromJson(Map json) => $PaidServiceEntityFromJson(json); Map toJson() => $PaidServiceEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceList { int? id; String? name; List? resources; @JSONField(name: "lowest_price") int? lowestPrice; @JSONField(name: "likes_count") int? likesCount; bool? liked; PaidServiceListMerchant? merchant; PaidServiceListCategory? category; PaidServiceList(); factory PaidServiceList.fromJson(Map json) => $PaidServiceListFromJson(json); Map toJson() => $PaidServiceListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceListMerchant { int? id; String? name; PaidServiceListMerchant(); factory PaidServiceListMerchant.fromJson(Map json) => $PaidServiceListMerchantFromJson(json); Map toJson() => $PaidServiceListMerchantToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceListCategory { int? id; String? name; String? type; PaidServiceListCategory(); factory PaidServiceListCategory.fromJson(Map json) => $PaidServiceListCategoryFromJson(json); Map toJson() => $PaidServiceListCategoryToJson(this); @override String toString() { return jsonEncode(this); } }