toJson method

  1. @override
String? toJson(
  1. FlexFit? object
)

Implementation

@override
String? toJson(FlexFit? object) {
  if (object == null) return null;

  switch (object) {
    case FlexFit.loose:
      return 'loose';

    case FlexFit.tight:
      return 'tight';
  }
}