toValue method

String toValue()

Implementation

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