InputMessageVoiceNote.fromJson constructor
Parses a InputMessageVoiceNote from TDLib JSON.
Implementation
factory InputMessageVoiceNote.fromJson(Map<String, dynamic> json) =>
InputMessageVoiceNote(
voiceNote: _readObject(json['voice_note'], InputFile.fromJson),
duration: _readInt(json['duration']),
waveform: _readString(json['waveform']),
caption: _readOptional(json['caption'], FormattedText.fromJson),
);