import 'package:domain/generated/json/base/json_field.dart'; import 'package:domain/generated/json/hotel_info_entity.g.dart'; import 'dart:convert'; export 'package:domain/generated/json/hotel_info_entity.g.dart'; @JsonSerializable() class HotelInfoEntity { @JSONField(name: "admin_id") int? adminId = 0; String? name = ''; @JSONField(name: "hotel_id") int? hotelId = 0; @JSONField(name: "hotel_name") String? hotelName = ''; List? menus = []; String? token = ''; HotelInfoEntity(); factory HotelInfoEntity.fromJson(Map json) => $HotelInfoEntityFromJson(json); Map toJson() => $HotelInfoEntityToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class HotelInfoMenus { String? key = ''; String? name = ''; List? children = []; HotelInfoMenus(); factory HotelInfoMenus.fromJson(Map json) => $HotelInfoMenusFromJson(json); Map toJson() => $HotelInfoMenusToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class HotelInfoMenusChildren { String? key = ''; String? name = ''; HotelInfoMenusChildren(); factory HotelInfoMenusChildren.fromJson(Map json) => $HotelInfoMenusChildrenFromJson(json); Map toJson() => $HotelInfoMenusChildrenToJson(this); @override String toString() { return jsonEncode(this); } }