fromJson static method
Implementation
static InputVideoNote? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputVideoNote(
videoNote: InputFile.fromJson(tdMapFromJson(json['video_note'])),
thumbnail: InputThumbnail.fromJson(tdMapFromJson(json['thumbnail'])),
duration: (json['duration'] as int?) ?? 0,
length: (json['length'] as int?) ?? 0,
);
}