public static ResourceType fromString()

in server/src/jetbrains/buildServer/sharedResources/model/resources/ResourceType.java [29:40]


  public static ResourceType fromString(@Nullable final String str) {
    if (str == null) {
      return null;
    } else {
      for (ResourceType type: values()) {
        if (type.toString().equalsIgnoreCase(str)) {
          return type;
        }
      }
    }
    return null;
  }