ReceivedGifts.fromJson constructor
Parses a ReceivedGifts from TDLib JSON.
Implementation
factory ReceivedGifts.fromJson(Map<String, dynamic> json) => ReceivedGifts(
totalCount: _readInt(json['total_count']),
gifts: _readList<ReceivedGift>(
json['gifts'],
(e) => _readObject(e, ReceivedGift.fromJson),
),
areNotificationsEnabled: _readBool(json['are_notifications_enabled']),
nextOffset: _readString(json['next_offset']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);