toJson method
Implementation
@override
String? toJson(SystemUiOverlayStyle? object) {
if (object == null) return null;
if (object == SystemUiOverlayStyle.dark) {
return 'dark';
} else if (object == SystemUiOverlayStyle.light) {
return 'light';
}
throw 'Json_Unsuported_Value';
}