InputInlineQueryResultVoiceNote.fromJson constructor

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

Parse from a json

Implementation

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