InputVoiceNote.fromJson constructor

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

Parses a InputVoiceNote from TDLib JSON.

Implementation

factory InputVoiceNote.fromJson(Map<String, dynamic> json) => InputVoiceNote(
  voiceNote: _readObject(json['voice_note'], InputFile.fromJson),
  duration: _readInt(json['duration']),
  waveform: _readString(json['waveform']),
);