toJson method
Implementation
@override
String? toJson(MainAxisAlignment? object) {
if (object == null) return null;
switch (object) {
case MainAxisAlignment.center:
return 'center';
case MainAxisAlignment.end:
return 'end';
case MainAxisAlignment.spaceAround:
return 'spaceAround';
case MainAxisAlignment.spaceBetween:
return 'spaceBetween';
case MainAxisAlignment.spaceEvenly:
return 'spaceEvenly';
case MainAxisAlignment.start:
return 'start';
}
}