AddressInput.fromJson constructor

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

Implementation

factory AddressInput.fromJson(Map<String, Object?> json) => AddressInput(
      city: json["city"] == null ? null : json["city"] 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,
      country: json["country"] as String,
    );