InputVideoNote.fromJson constructor

InputVideoNote.fromJson(
  1. Map<String, dynamic> json
)

Parses a InputVideoNote from TDLib JSON.

Implementation

factory InputVideoNote.fromJson(Map<String, dynamic> json) => InputVideoNote(
  videoNote: _readObject(json['video_note'], InputFile.fromJson),
  thumbnail: _readOptional(json['thumbnail'], InputThumbnail.fromJson),
  duration: _readInt(json['duration']),
  length: _readInt(json['length']),
);