ShippingQuery.fromJson constructor

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

Creates a ShippingQuery object from a JSON object

Implementation

factory ShippingQuery.fromJson(Map<String, dynamic> json) {
  return ShippingQuery(
    id: json['id']!,
    from: User.fromJson(json['from']!),
    invoicePayload: json['invoice_payload']!,
    shippingAddress: ShippingAddress.fromJson(json['shipping_address']!),
  );
}