fromMap static method
override
Construct from Map.
Implementation
static InputInlineQueryResultAudio? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var id = _map['id']! as String;
var title = _map['title']! as String;
var performer = _map['performer']! as String;
var audio_url = _map['audio_url']! as String;
var audio_duration = _map['audio_duration']! as int;
var reply_markup = ReplyMarkup.fromMap(_map['reply_markup']);
var input_message_content =
InputMessageContent.fromMap(_map['input_message_content'])!;
return InputInlineQueryResultAudio(
extra: extra,
clientId: clientId,
id: id,
title: title,
performer: performer,
audio_url: audio_url,
audio_duration: audio_duration,
reply_markup: reply_markup,
input_message_content: input_message_content,
);
}