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