ShippingAddressData.fromJson constructor

ShippingAddressData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ShippingAddressData.fromJson(Map<String, dynamic> json) => ShippingAddressData(
    merchantId: json["merchant_id"] == null ? null : json["merchant_id"],
    zip: json["zip"] == null ? null : json["zip"],
    streetAddress: json["street_address"] == null ? null : json["street_address"],
    addressName: json["address_name"] == null ? null : json["address_name"],
    country: json["country"] == null ? null : json["country"],
    state: json["state"] == null ? null : json["state"],
    city: json["city"] == null ? null : json["city"],
    customerId: json["customer_id"] == null ? null : json["customer_id"],
    isDefaultAddress: json["is_default_address"] == null ? null : json["is_default_address"],
    status: json["status"] == null ? null : json["status"],
    updatedAt: json["updated_at"] == null ? null : DateTime.parse(json["updated_at"]),
    createdAt: json["created_at"] == null ? null : DateTime.parse(json["created_at"]),
    id: json["id"] == null ? null : json["id"],
);