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