UParkingSubscriptionUpdateParams.fromMap constructor
UParkingSubscriptionUpdateParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UParkingSubscriptionUpdateParams.fromMap(Map<String, dynamic> json) => UParkingSubscriptionUpdateParams(
id: json["id"],
customerName: json["customerName"],
customerPhoneNumber: json["customerPhoneNumber"],
price: json["price"] == null ? null : (json["price"] as num).toDouble(),
startDate: json["startDate"] == null ? null : DateTime.parse(json["startDate"]),
expiryDate: json["expiryDate"] == null ? null : DateTime.parse(json["expiryDate"]),
dailyEntryLimit: json["dailyEntryLimit"],
officeHoursOnly: json["officeHoursOnly"],
addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"]!.map((dynamic x) => x)),
removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"]!.map((dynamic x) => x)),
detail1: json["detail1"],
detail2: json["detail2"],
tags: json["tags"] == null ? null : List<int>.from(json["tags"]!.map((dynamic x) => x)),
adminUserIds: json["adminUserIds"] == null ? null : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
addAdminUserIds: json["addAdminUserIds"] == null ? null : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
removeAdminUserIds: json["removeAdminUserIds"] == null ? null : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
);