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