UpdateNewPreCheckoutQuery.fromJson constructor

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

Parse from a json

Implementation

factory UpdateNewPreCheckoutQuery.fromJson(Map<String, dynamic> json) => UpdateNewPreCheckoutQuery(
  id: int.parse(json['id']),
  senderUserId: json['sender_user_id'],
  currency: json['currency'],
  totalAmount: json['total_amount'],
  invoicePayload: json['invoice_payload'],
  shippingOptionId: json['shipping_option_id'],
  orderInfo: json['order_info'] == null ? null : OrderInfo.fromJson(json['order_info']),
  extra: json['@extra'],
  clientId: json['@client_id'],
);