toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'answerCallbackQuery',
if (extra != null) '@extra': extra,
'callback_query_id': callback_query_id,
'text': text,
'show_alert': show_alert,
'url': url,
'cache_time': cache_time
};
}