InputMessageVoiceNote.fromJson constructor
Parse from a json
Implementation
factory InputMessageVoiceNote.fromJson(Map<String, dynamic> json) => InputMessageVoiceNote(
voiceNote: InputFile.fromJson(json['voice_note']),
duration: json['duration'],
waveform: json['waveform'],
caption: json['caption'] == null ? null : FormattedText.fromJson(json['caption']),
);