StickerSetInfo.fromJson constructor
Parses a StickerSetInfo from TDLib JSON.
Implementation
factory StickerSetInfo.fromJson(Map<String, dynamic> json) => StickerSetInfo(
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),
needsRepainting: _readBool(json['needs_repainting']),
isAllowedAsChatEmojiStatus:
_readBool(json['is_allowed_as_chat_emoji_status']),
isViewed: _readBool(json['is_viewed']),
size: _readInt(json['size']),
covers: _readList<Sticker>(
json['covers'], (e) => _readObject(e, Sticker.fromJson)),
);