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