fromMap static method
override
Construct from Map.
Implementation
static InputMessageVideoNote? 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_note = InputFile.fromMap(_map['video_note'])!;
var thumbnail = InputThumbnail.fromMap(_map['thumbnail']);
var duration = _map['duration']! as int;
var length = _map['length']! as int;
return InputMessageVideoNote(
extra: extra,
clientId: clientId,
video_note: video_note,
thumbnail: thumbnail,
duration: duration,
length: length,
);
}