StarTransactions.fromJson constructor

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

Parses a StarTransactions from TDLib JSON.

Implementation

factory StarTransactions.fromJson(Map<String, dynamic> json) =>
    StarTransactions(
      starAmount: _readObject(json['star_amount'], StarAmount.fromJson),
      transactions: _readList<StarTransaction>(
        json['transactions'],
        (e) => _readObject(e, StarTransaction.fromJson),
      ),
      nextOffset: _readString(json['next_offset']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );