fromMap static method
override
Construct from Map.
Implementation
static InputStoryContentVideo? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var video = InputFile.fromMap(_map['video'])!;
var added_sticker_file_ids = List<int>.from(
(_map["added_sticker_file_ids"] ?? []).map(
(e) => e as int,
),
);
var duration = _map['duration']! as double;
var is_animation = _map['is_animation']! as bool;
return InputStoryContentVideo(
extra: extra,
clientId: clientId,
video: video,
added_sticker_file_ids: added_sticker_file_ids,
duration: duration,
is_animation: is_animation,
);
}