getFromName static method

Attribute? getFromName(
  1. String name
)

Implementation

static Attribute? getFromName(String name){
  for(int i = 0; i < values.length;i++){
    if(values[i].name == name){
      return values[i];
    }
  }

  return null;
}