fromJson method
Implementation
@override
MainAxisSize? fromJson(String? json) {
if (json == null) return null;
switch (json) {
case 'max':
return MainAxisSize.max;
case 'min':
return MainAxisSize.min;
}
throw 'Unsuported_Json_Value';
}