InputMessagePhoto.fromMap constructor
InputMessagePhoto.fromMap(
- Map<String, dynamic> map
)
Implementation
InputMessagePhoto.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['photo'] != null) {
photo = TdApiMap.fromMap(map['photo']) as InputFile;
}
if (map['thumbnail'] != null) {
thumbnail = TdApiMap.fromMap(map['thumbnail']) as InputThumbnail;
}
if (map['added_sticker_file_ids'] != null) {
added_sticker_file_ids = [];
for (var someValue in map['added_sticker_file_ids']) {
added_sticker_file_ids?.add(someValue);
}
}
width = map['width'];
height = map['height'];
if (map['caption'] != null) {
caption = TdApiMap.fromMap(map['caption']) as FormattedText;
}
self_destruct_time = map['self_destruct_time'];
has_spoiler = map['has_spoiler'];
}