AddressInput.fromJson constructor

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

Implementation

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