InputInlineQueryResultVoiceNote.fromJson constructor

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

Parses a InputInlineQueryResultVoiceNote from TDLib JSON.

Implementation

factory InputInlineQueryResultVoiceNote.fromJson(Map<String, dynamic> json) =>
    InputInlineQueryResultVoiceNote(
      id: _readString(json['id']),
      title: _readString(json['title']),
      voiceNoteUrl: _readString(json['voice_note_url']),
      voiceNoteDuration: _readInt(json['voice_note_duration']),
      replyMarkup: _readOptional(json['reply_markup'], ReplyMarkup.fromJson),
      inputMessageContent: _readObject(
          json['input_message_content'], InputMessageContent.fromJson),
    );