GiftsForResale.fromJson constructor
Parses a GiftsForResale from TDLib JSON.
Implementation
factory GiftsForResale.fromJson(Map<String, dynamic> json) => GiftsForResale(
totalCount: _readInt(json['total_count']),
gifts: _readList<GiftForResale>(
json['gifts'],
(e) => _readObject(e, GiftForResale.fromJson),
),
models: _readList<UpgradedGiftModelCount>(
json['models'],
(e) => _readObject(e, UpgradedGiftModelCount.fromJson),
),
symbols: _readList<UpgradedGiftSymbolCount>(
json['symbols'],
(e) => _readObject(e, UpgradedGiftSymbolCount.fromJson),
),
backdrops: _readList<UpgradedGiftBackdropCount>(
json['backdrops'],
(e) => _readObject(e, UpgradedGiftBackdropCount.fromJson),
),
nextOffset: _readString(json['next_offset']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);