toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'inputMessageAudio',
    if (extra != null) '@extra': extra,
    'audio': audio,
    'album_cover_thumbnail': album_cover_thumbnail,
    'duration': duration,
    'title': title,
    'performer': performer,
    'caption': caption
  };
}