toJson method

  1. @override
Map<String, dynamic> toJson()
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
  };
}