123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- 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<String>? 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<PaidServiceDetailProducts>? products;
- List<PaidServiceDetailEvaluations>? evaluations;
- PaidServiceDetailEntity();
- factory PaidServiceDetailEntity.fromJson(Map<String, dynamic> json) => $PaidServiceDetailEntityFromJson(json);
- Map<String, dynamic> toJson() => $PaidServiceDetailEntityToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class PaidServiceDetailMerchant {
- int? id;
- String? name;
- PaidServiceDetailMerchant();
- factory PaidServiceDetailMerchant.fromJson(Map<String, dynamic> json) => $PaidServiceDetailMerchantFromJson(json);
- Map<String, dynamic> toJson() => $PaidServiceDetailMerchantToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class PaidServiceDetailCategory {
- int? id;
- String? name;
- String? type;
- PaidServiceDetailCategory();
- factory PaidServiceDetailCategory.fromJson(Map<String, dynamic> json) => $PaidServiceDetailCategoryFromJson(json);
- Map<String, dynamic> 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<String, dynamic> json) => $PaidServiceDetailProductsFromJson(json);
- Map<String, dynamic> toJson() => $PaidServiceDetailProductsToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class PaidServiceDetailEvaluations {
- int? id;
- int? score;
- String? comment;
- List<String>? resources;
- PaidServiceDetailEvaluationsAccount? account;
- @JSONField(name: "created_at")
- String? createdAt;
- PaidServiceDetailEvaluations();
- factory PaidServiceDetailEvaluations.fromJson(Map<String, dynamic> json) => $PaidServiceDetailEvaluationsFromJson(json);
- Map<String, dynamic> toJson() => $PaidServiceDetailEvaluationsToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class PaidServiceDetailEvaluationsAccount {
- int? id;
- String? name;
- String? avatar;
- PaidServiceDetailEvaluationsAccount();
- factory PaidServiceDetailEvaluationsAccount.fromJson(Map<String, dynamic> json) => $PaidServiceDetailEvaluationsAccountFromJson(json);
- Map<String, dynamic> toJson() => $PaidServiceDetailEvaluationsAccountToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
|