VideoNote.fromJson constructor
Parses a VideoNote from TDLib JSON.
Implementation
factory VideoNote.fromJson(Map<String, dynamic> json) => VideoNote(
duration: _readInt(json['duration']),
waveform: _readString(json['waveform']),
length: _readInt(json['length']),
minithumbnail:
_readOptional(json['minithumbnail'], Minithumbnail.fromJson),
thumbnail: _readOptional(json['thumbnail'], Thumbnail.fromJson),
speechRecognitionResult: _readOptional(
json['speech_recognition_result'],
SpeechRecognitionResult.fromJson),
video: _readObject(json['video'], File.fromJson),
);