ConnectionType.parse constructor

ConnectionType.parse(
  1. String value
)

Parse a string to a ConnectionType.

The value must be a string containing a valid ConnectionType.value.

Implementation

factory ConnectionType.parse(String value) => ConnectionType.values.firstWhere(
      (type) => type.value == value,
      orElse: () => throw FormatException('Unknown ConnectionType', value),
    );