UHotelUpdateParams.fromMap constructor
UHotelUpdateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UHotelUpdateParams.fromMap(Map<String, dynamic> json) => UHotelUpdateParams(
id: json["id"],
detail1: json["detail1"],
detail2: json["detail2"],
addTags: json["addTags"] == null ? <int>[] : List<int>.from(json["addTags"]!.map((dynamic x) => x)),
removeTags: json["removeTags"] == null ? <int>[] : List<int>.from(json["removeTags"]!.map((dynamic x) => x)),
tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
title: json["title"],
cityCode: json["cityCode"],
stars: json["stars"] == null ? null : (json["stars"] as num).toInt(),
address: json["address"],
phoneNumber: json["phoneNumber"],
email: json["email"],
description: json["description"],
policies: json["policies"],
checkInTime: json["checkInTime"],
checkOutTime: json["checkOutTime"],
amenities: json["amenities"] == null ? null : List<String>.from(json["amenities"]!.map((dynamic x) => x)),
adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
addAdminUserIds: json["addAdminUserIds"] == null ? <String>[] : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
removeAdminUserIds: json["removeAdminUserIds"] == null ? <String>[] : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
);