fromJson method

  1. @override
FlexFit? fromJson(
  1. String? json
)
override

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';
}