InputInlineQueryResultAudio.fromJson constructor

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

Parse from a json

Implementation

factory InputInlineQueryResultAudio.fromJson(Map<String, dynamic> json) => InputInlineQueryResultAudio(
  id: json['id'],
  title: json['title'],
  performer: json['performer'],
  audioUrl: json['audio_url'],
  audioDuration: json['audio_duration'],
  replyMarkup: json['reply_markup'] == null ? null : ReplyMarkup.fromJson(json['reply_markup']),
  inputMessageContent: InputMessageContent.fromJson(json['input_message_content']),
);