toJson method
override
Object to Map serializer
Implementation
@override
Map<String, dynamic> toJson() {
return {
'@type': 'updateMessageSendFailed',
if (extra != null) '@extra': extra,
'message': message,
'old_message_id': old_message_id,
'error': error
};
}