fromMap static method

GenderEnum? fromMap(
  1. String? val
)

Implementation

static GenderEnum? fromMap(String? val) {
  if (val == null) return null;
  return _values.entries.firstWhere((e) => e.value == val, orElse: () => _values.entries.first).key;
}