OnRampPaymentQuote.fromJson constructor

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

Parses a OnRampPaymentQuote from TDLib JSON.

Implementation

factory OnRampPaymentQuote.fromJson(Map<String, dynamic> json) =>
    OnRampPaymentQuote(
      paymentMethod: _readString(json['payment_method']),
      expirationDate: _readInt(json['expiration_date']),
      baseCurrencyAmount: _readString(json['base_currency_amount']),
      cryptocurrencyAmount: _readString(json['cryptocurrency_amount']),
      cryptocurrencyPrice: _readString(json['cryptocurrency_price']),
      feeAmount: _readString(json['fee_amount']),
      extraFeeAmount: _readString(json['extra_fee_amount']),
      networkFeeAmount: _readString(json['network_fee_amount']),
      totalAmount: _readString(json['total_amount']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );