InputMessageAnimation.fromJson constructor
Parse from a json
Implementation
factory InputMessageAnimation.fromJson(Map<String, dynamic> json) =>
InputMessageAnimation(
animation: InputFile.fromJson(json['animation']),
thumbnail: json['thumbnail'] == null
? null
: InputThumbnail.fromJson(json['thumbnail']),
addedStickerFileIds: List<int>.from(
(json['added_sticker_file_ids'] ?? [])
.map((item) => item)
.toList()),
duration: json['duration'],
width: json['width'],
height: json['height'],
caption: json['caption'] == null
? null
: FormattedText.fromJson(json['caption']),
hasSpoiler: json['has_spoiler'],
);