decodeDamageType function

DamageType? decodeDamageType(
  1. dynamic value
)

Implementation

DamageType? decodeDamageType (dynamic value) {
  if(value == null) {
    return null;
  }
  if(_$DamageTypeValueMap.containsKey(value)){
    return _$DamageTypeValueMap[value];
  }

  return DamageType.ProtectedInvalidEnumValue;
}