toHandshakeState method

HandshakeState toHandshakeState()

Implementation

HandshakeState toHandshakeState() {
  switch (this) {
    case 'REQUESTED':
      return HandshakeState.requested;
    case 'OPEN':
      return HandshakeState.open;
    case 'CANCELED':
      return HandshakeState.canceled;
    case 'ACCEPTED':
      return HandshakeState.accepted;
    case 'DECLINED':
      return HandshakeState.declined;
    case 'EXPIRED':
      return HandshakeState.expired;
  }
  throw Exception('$this is not known in enum HandshakeState');
}