InputMessageAnimation.fromMap constructor
Implementation
InputMessageAnimation.fromMap(Map<String, dynamic> map) {
extra = map['@extra'];
client_id = map['@client_id'];
if (map['animation'] != null) {
animation = TdApiMap.fromMap(map['animation']) 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);
}
}
duration = map['duration'];
width = map['width'];
height = map['height'];
if (map['caption'] != null) {
caption = TdApiMap.fromMap(map['caption']) as FormattedText;
}
has_spoiler = map['has_spoiler'];
}