toJson method
Implementation
@override
String? toJson(CrossAxisAlignment? object) {
if (object == null) return null;
switch (object) {
case CrossAxisAlignment.baseline:
return 'baseline';
case CrossAxisAlignment.center:
return 'center';
case CrossAxisAlignment.end:
return 'end';
case CrossAxisAlignment.start:
return 'start';
case CrossAxisAlignment.stretch:
return 'stretch';
}
}