toJson method
Converts an InlineQueryResultVoice object to a JSON map
Implementation
@override
Map<String, dynamic> toJson() {
return {
'type': type.value,
'voice_url': voiceUrl,
'title': title,
'caption': caption,
'parse_mode': parseMode?.value,
'caption_entities': captionEntities?.map((e) => e.toJson()).toList(),
'voice_duration': voiceDuration,
'reply_markup': replyMarkup?.toJson(),
'input_message_content': inputMessageContent?.toJson(),
'id': id,
}..removeWhere(_nullFilter);
}