fromString static method

ArtifactType? fromString(
  1. String str
)

Implementation

static ArtifactType? fromString(String str) {
  for (var artifact in ArtifactType.values) {
    if (artifact.display_name == str) {
      return artifact;
    }
  }

  return null;
}