fromName static method

ReadWriteMarker fromName(
  1. String name
)

Implementation

static ReadWriteMarker fromName(String name) {
  if (name == ReadWriteMarker.readOnly.name) {
    return ReadWriteMarker.readOnly;
  } else if (name == ReadWriteMarker.writeOnly.name) {
    return ReadWriteMarker.writeOnly;
  }
  return ReadWriteMarker.readWrite;
}