fromMap static method

PhoneTypeEnum? fromMap(
  1. int? val
)

Implementation

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