StickerSets.fromJson constructor

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

Parses a StickerSets from TDLib JSON.

Implementation

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