fromJson static method
Inherited by: InlineQueryResultAnimation InlineQueryResultArticle InlineQueryResultAudio InlineQueryResultContact InlineQueryResultDocument InlineQueryResultGame InlineQueryResultLocation InlineQueryResultPhoto InlineQueryResultSticker InlineQueryResultVenue InlineQueryResultVideo InlineQueryResultVoiceNote
Implementation
static InlineQueryResultVoiceNote? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InlineQueryResultVoiceNote(
id: (json['id'] as String?) ?? '',
voiceNote:
VoiceNote.fromJson(json['voice_note'] as Map<String, dynamic>?)!,
title: (json['title'] as String?) ?? '',
);
}