UpdateNewShippingQuery.fromJson constructor

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

Parse from a json

Implementation

factory UpdateNewShippingQuery.fromJson(Map<String, dynamic> json) => UpdateNewShippingQuery(
  id: int.parse(json['id']),
  senderUserId: json['sender_user_id'],
  invoicePayload: json['invoice_payload'],
  shippingAddress: Address.fromJson(json['shipping_address']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);