123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- import 'package:domain/generated/json/base/json_field.dart';
- import 'package:domain/generated/json/facility_page_entity.g.dart';
- import 'dart:convert';
- export 'package:domain/generated/json/facility_page_entity.g.dart';
- @JsonSerializable()
- class FacilityPageEntity {
- int count = 0;
- int page = 0;
- int limit = 0;
- @JSONField(name: "count_page")
- int countPage = 0;
- @JSONField(name: "total_deposit")
- String? totalDeposit;
- List<FacilityDetail>? list = [];
- FacilityPageEntity();
- factory FacilityPageEntity.fromJson(Map<String, dynamic> json) => $FacilityPageEntityFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageEntityToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityDetail {
- FacilityPageListBooking? booking;
- FacilityPageListFacility? facility;
- @JSONField(name: "time_period")
- FacilityPageListTimePeriod? timePeriod;
- FacilityPageListAccount? account;
- FacilityDetail();
- factory FacilityDetail.fromJson(Map<String, dynamic> json) => $FacilityDetailFromJson(json);
- Map<String, dynamic> toJson() => $FacilityDetailToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityPageListBooking {
- String? id;
- String? date;
- String? start;
- String? end;
- @JSONField(name: "deposit_paid")
- String? depositPaid;
- @JSONField(name: "deposit_refund")
- String? depositRefund;
- @JSONField(name: "deposit_refund_at")
- String? depositRefundAt;
- FacilityPageListBooking();
- factory FacilityPageListBooking.fromJson(Map<String, dynamic> json) => $FacilityPageListBookingFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageListBookingToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityPageListFacility {
- String? id;
- String? name;
- FacilityPageListFacilityType? type;
- FacilityPageListFacility();
- factory FacilityPageListFacility.fromJson(Map<String, dynamic> json) => $FacilityPageListFacilityFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageListFacilityToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityPageListFacilityType {
- String? id;
- String? name;
- FacilityPageListFacilityType();
- factory FacilityPageListFacilityType.fromJson(Map<String, dynamic> json) => $FacilityPageListFacilityTypeFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageListFacilityTypeToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityPageListTimePeriod {
- String? price;
- String? deposit;
- FacilityPageListTimePeriod();
- factory FacilityPageListTimePeriod.fromJson(Map<String, dynamic> json) => $FacilityPageListTimePeriodFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageListTimePeriodToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
- @JsonSerializable()
- class FacilityPageListAccount {
- String? id;
- String? name;
- FacilityPageListAccount();
- factory FacilityPageListAccount.fromJson(Map<String, dynamic> json) => $FacilityPageListAccountFromJson(json);
- Map<String, dynamic> toJson() => $FacilityPageListAccountToJson(this);
- @override
- String toString() {
- return jsonEncode(this);
- }
- }
|