import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/paid_service_detail_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/paid_service_detail_entity.g.dart'; @JsonSerializable() class PaidServiceDetailEntity { int? id; List? resources; String? name; @JSONField(name: "evaluations_avg_score") int? evaluationsAvgScore; String? highlight; @JSONField(name: "urgent_price") int? urgentPrice; @JSONField(name: "holiday_price") int? holidayPrice; @JSONField(name: "night_price") double? nightPrice; @JSONField(name: "service_period_start") String? servicePeriodStart; @JSONField(name: "service_period_end") String? servicePeriodEnd; @JSONField(name: "service_period_interval") int? servicePeriodInterval; String? description; PaidServiceDetailMerchant? merchant; PaidServiceDetailCategory? category; List? products; List? evaluations; PaidServiceDetailEntity(); factory PaidServiceDetailEntity.fromJson(Map json) => $PaidServiceDetailEntityFromJson(json); Map toJson() => $PaidServiceDetailEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceDetailMerchant { int? id; String? name; PaidServiceDetailMerchant(); factory PaidServiceDetailMerchant.fromJson(Map json) => $PaidServiceDetailMerchantFromJson(json); Map toJson() => $PaidServiceDetailMerchantToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceDetailCategory { int? id; String? name; String? type; PaidServiceDetailCategory(); factory PaidServiceDetailCategory.fromJson(Map json) => $PaidServiceDetailCategoryFromJson(json); Map toJson() => $PaidServiceDetailCategoryToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceDetailProducts { int? id; String? name; @JSONField(name: "short_description") String? shortDescription; int? price; PaidServiceDetailProducts(); factory PaidServiceDetailProducts.fromJson(Map json) => $PaidServiceDetailProductsFromJson(json); Map toJson() => $PaidServiceDetailProductsToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceDetailEvaluations { int? id; int? score; String? comment; List? resources; PaidServiceDetailEvaluationsAccount? account; @JSONField(name: "created_at") String? createdAt; PaidServiceDetailEvaluations(); factory PaidServiceDetailEvaluations.fromJson(Map json) => $PaidServiceDetailEvaluationsFromJson(json); Map toJson() => $PaidServiceDetailEvaluationsToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class PaidServiceDetailEvaluationsAccount { int? id; String? name; String? avatar; PaidServiceDetailEvaluationsAccount(); factory PaidServiceDetailEvaluationsAccount.fromJson(Map json) => $PaidServiceDetailEvaluationsAccountFromJson(json); Map toJson() => $PaidServiceDetailEvaluationsAccountToJson(this); @override String toString() { return jsonEncode(this); } }