toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionStatus.pending:
      return 'PENDING';
    case ConnectionStatus.available:
      return 'AVAILABLE';
    case ConnectionStatus.error:
      return 'ERROR';
  }
}