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