toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'inputInlineQueryResultAudio',
    if (extra != null) '@extra': extra,
    'id': id,
    'title': title,
    'performer': performer,
    'audio_url': audio_url,
    'audio_duration': audio_duration,
    'reply_markup': reply_markup,
    'input_message_content': input_message_content
  };
}