toValue method
Implementation
String toValue() {
switch (this) {
case HandshakeState.requested:
return 'REQUESTED';
case HandshakeState.open:
return 'OPEN';
case HandshakeState.canceled:
return 'CANCELED';
case HandshakeState.accepted:
return 'ACCEPTED';
case HandshakeState.declined:
return 'DECLINED';
case HandshakeState.expired:
return 'EXPIRED';
}
}