toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionStateType.connected:
      return 'CONNECTED';
    case ConnectionStateType.connecting:
      return 'CONNECTING';
    case ConnectionStateType.failed:
      return 'FAILED';
    case ConnectionStateType.disconnected:
      return 'DISCONNECTED';
    case ConnectionStateType.disconnecting:
      return 'DISCONNECTING';
  }
}