fromString static method

StateMutability fromString(
  1. String type
)

Implementation

static StateMutability fromString(String type) {
  return StateMutability.values.singleWhere((e) {
    return e.name == type;
  });
}