StickerSetInfo.fromMap constructor
StickerSetInfo.fromMap(
- Map<String, dynamic> map
)
Implementation
StickerSetInfo.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
id = map['id'];
title = map['title'];
name = map['name'];
if (map['thumbnail'] != null) {
thumbnail = TdApiMap.fromMap(map['thumbnail']) as Thumbnail;
}
if (map['thumbnail_outline'] != null) {
thumbnail_outline = [];
for (var someValue in map['thumbnail_outline']) {
if (someValue != null) {
thumbnail_outline?.add(TdApiMap.fromMap(someValue) as ClosedVectorPath);
}
}
}
is_installed = map['is_installed'];
is_archived = map['is_archived'];
is_official = map['is_official'];
if (map['sticker_format'] != null) {
sticker_format = TdApiMap.fromMap(map['sticker_format']) as StickerFormat;
}
if (map['sticker_type'] != null) {
sticker_type = TdApiMap.fromMap(map['sticker_type']) as StickerType;
}
is_viewed = map['is_viewed'];
size = map['size'];
if (map['covers'] != null) {
covers = [];
for (var someValue in map['covers']) {
if (someValue != null) {
covers?.add(TdApiMap.fromMap(someValue) as Sticker);
}
}
}
}