UAddressUpdateParams.fromMap constructor

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

Implementation

factory UAddressUpdateParams.fromMap(Map<String, dynamic> json) => UAddressUpdateParams(
  id: json["id"],
  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"],
  detail1: json["detail1"],
  detail2: json["detail2"],
  province: json["province"],
  township: json["township"],
  street: json["street"],
  street2: json["street2"],
  localityName: json["localityName"],
  houseNumber: json["houseNumber"],
  floor: json["floor"],
  zipCode: json["zipCode"],
  description: json["description"],
  buildingName: json["buildingName"],
  localityType: json["localityType"],
  sideFloor: json["sideFloor"],
  subLocality: json["subLocality"],
  village: json["village"],
  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)),
);