InputMessageVoiceNote.fromJson constructor

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

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']),
    );