toJson method
Converts this request to TDLib JSON, tagged with extra if given.
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) => {
'@type': CONSTRUCTOR,
'chat_id': chatId,
'message_id': messageId,
'media_timestamp': mediaTimestamp,
'for_album': forAlbum,
'in_message_thread': inMessageThread,
if (extra != null) '@extra': extra,
};