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