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