TonWalletTransactions.fromJson constructor

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

Parses a TonWalletTransactions from TDLib JSON.

Implementation

factory TonWalletTransactions.fromJson(Map<String, dynamic> json) =>
    TonWalletTransactions(
      gramAmount: _readInt(json['gram_amount']),
      transactions: _readList<TonWalletTransaction>(
        json['transactions'],
        (e) => _readObject(e, TonWalletTransaction.fromJson),
      ),
      nextOffset: _readString(json['next_offset']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );