GiftCollection.fromJson constructor
Parses a GiftCollection from TDLib JSON.
Implementation
factory GiftCollection.fromJson(Map<String, dynamic> json) => GiftCollection(
id: _readInt(json['id']),
name: _readString(json['name']),
icon: _readOptional(json['icon'], Sticker.fromJson),
giftCount: _readInt(json['gift_count']),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);