UDormBedCreateParams.fromMap constructor

UDormBedCreateParams.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UDormBedCreateParams.fromMap(Map<String, dynamic> json) => UDormBedCreateParams(
  detail1: json["detail1"],
  detail2: json["detail2"],
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  id: json["id"],
  creatorId: json["creatorId"],
  title: json["title"],
  deposit: json["deposit"]?.toDouble(),
  monthlyRent: json["monthlyRent"]?.toDouble(),
  roomId: json["roomId"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
);