toJson method
Implementation
@override
String? toJson(MainAxisSize? object) {
if (object == null) return null;
switch (object) {
case MainAxisSize.max:
return 'max';
case MainAxisSize.min:
return 'min';
}
}
@override
String? toJson(MainAxisSize? object) {
if (object == null) return null;
switch (object) {
case MainAxisSize.max:
return 'max';
case MainAxisSize.min:
return 'min';
}
}