UpdateRequestOwnerAddress.fromJson constructor

UpdateRequestOwnerAddress.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory UpdateRequestOwnerAddress.fromJson(
  Map<String, Object?> json,
) =>
    UpdateRequestOwnerAddress(
      city: json["city"] == null ? null : json["city"] as String,
      country: json["country"] == null ? null : json["country"] as String,
      line1: json["line1"] == null ? null : json["line1"] as String,
      line2: json["line2"] == null ? null : json["line2"] as String,
      name: json["name"] == null ? null : json["name"] as String,
      phoneNumber: json["phone_number"] == null
          ? null
          : json["phone_number"] as String,
      postCode:
          json["post_code"] == null ? null : json["post_code"] as String,
      region: json["region"] == null ? null : json["region"] as String,
    );