fromString static method

RotationOrders fromString(
  1. String order
)

Implementation

static RotationOrders fromString(String order){
  for(int i = 0; i < RotationOrders.values.length;i++){
    if(RotationOrders.values[i].name == order.toLowerCase()){
      return RotationOrders.values[i];
    }
  }
  return RotationOrders.xyz;
}