StickerSet.fromJson constructor
Parses a StickerSet from TDLib JSON.
Implementation
factory StickerSet.fromJson(Map<String, dynamic> json) => StickerSet(
id: _readInt(json['id']),
title: _readString(json['title']),
name: _readString(json['name']),
thumbnail: _readOptional(json['thumbnail'], Thumbnail.fromJson),
thumbnailOutline: _readList<ClosedVectorPath>(json['thumbnail_outline'],
(e) => _readObject(e, ClosedVectorPath.fromJson)),
isInstalled: _readBool(json['is_installed']),
isArchived: _readBool(json['is_archived']),
isOfficial: _readBool(json['is_official']),
stickerFormat:
_readObject(json['sticker_format'], StickerFormat.fromJson),
stickerType: _readObject(json['sticker_type'], StickerType.fromJson),
isViewed: _readBool(json['is_viewed']),
stickers: _readList<Sticker>(
json['stickers'], (e) => _readObject(e, Sticker.fromJson)),
emojis: _readList<Emojis>(
json['emojis'], (e) => _readObject(e, Emojis.fromJson)),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);