toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PortState.open:
      return 'open';
    case PortState.closed:
      return 'closed';
  }
}