InputAnimation.fromJson constructor
Parses a InputAnimation from TDLib JSON.
Implementation
factory InputAnimation.fromJson(Map<String, dynamic> json) => InputAnimation(
animation: _readObject(json['animation'], InputFile.fromJson),
thumbnail: _readOptional(json['thumbnail'], InputThumbnail.fromJson),
addedStickerFileIds: _readList<int>(
json['added_sticker_file_ids'],
_readInt,
),
duration: _readInt(json['duration']),
width: _readInt(json['width']),
height: _readInt(json['height']),
);