TrendingStickerSets.fromJson constructor

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

Parses a TrendingStickerSets from TDLib JSON.

Implementation

factory TrendingStickerSets.fromJson(Map<String, dynamic> json) =>
    TrendingStickerSets(
      totalCount: _readInt(json['total_count']),
      sets: _readList<StickerSetInfo>(
          json['sets'], (e) => _readObject(e, StickerSetInfo.fromJson)),
      isPremium: _readBool(json['is_premium']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );