fromString static method

LayrzProtocolMode fromString(
  1. String value
)

Implementation

static LayrzProtocolMode fromString(String value) {
  switch (value) {
    case 'TCP':
      return LayrzProtocolMode.tcp;
    case 'HTTP':
    default:
      return LayrzProtocolMode.http;
  }
}