toJson method
Implementation
@override
String? toJson(VisualDensity? object) {
if (object == null) return null;
if (object == VisualDensity.comfortable) {
return 'comfortable';
} else if (object == VisualDensity.compact) {
return 'compact';
} else if (object == VisualDensity.standard) {
return 'standard';
}
throw 'Json_Unsuported_Value';
}