fromJson static method
Inherited by: InputInlineQueryResultAnimation InputInlineQueryResultArticle InputInlineQueryResultAudio InputInlineQueryResultContact InputInlineQueryResultDocument InputInlineQueryResultGame InputInlineQueryResultLocation InputInlineQueryResultPhoto InputInlineQueryResultSticker InputInlineQueryResultVenue InputInlineQueryResultVideo InputInlineQueryResultVoiceNote
Implementation
static InputInlineQueryResultAudio? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InputInlineQueryResultAudio(
id: (json['id'] as String?) ?? '',
title: (json['title'] as String?) ?? '',
performer: (json['performer'] as String?) ?? '',
audioUrl: (json['audio_url'] as String?) ?? '',
audioDuration: (json['audio_duration'] as int?) ?? 0,
replyMarkup:
ReplyMarkup.fromJson(json['reply_markup'] as Map<String, dynamic>?),
inputMessageContent: InputMessageContent.fromJson(
json['input_message_content'] as Map<String, dynamic>?)!,
);
}