fromJson method
Implementation
@override
SystemUiOverlayStyle? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'dark':
return SystemUiOverlayStyle.dark;
case 'light':
return SystemUiOverlayStyle.light;
}
throw 'Unsuported_Json_Value';
}