@override String? toJson(FlexFit? object) { if (object == null) return null; switch (object) { case FlexFit.loose: return 'loose'; case FlexFit.tight: return 'tight'; } }