valueOf static method

DeclarationAllowIncoming? valueOf(
  1. String value
)

Implementation

static DeclarationAllowIncoming? valueOf(final String value) {
  for (final $value in values) {
    if ($value.value == value) {
      return $value;
    }
  }

  return null;
}