Sticker.fromJson constructor
Parses a Sticker from TDLib JSON.
Implementation
factory Sticker.fromJson(Map<String, dynamic> json) => Sticker(
id: _readInt(json['id']),
setId: _readInt(json['set_id']),
width: _readInt(json['width']),
height: _readInt(json['height']),
emoji: _readString(json['emoji']),
format: _readObject(json['format'], StickerFormat.fromJson),
fullType: _readObject(json['full_type'], StickerFullType.fromJson),
outline: _readList<ClosedVectorPath>(
json['outline'], (e) => _readObject(e, ClosedVectorPath.fromJson)),
thumbnail: _readOptional(json['thumbnail'], Thumbnail.fromJson),
sticker: _readObject(json['sticker'], File.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);