toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionState.pending:
      return 'PENDING';
    case ConnectionState.available:
      return 'AVAILABLE';
    case ConnectionState.deleting:
      return 'DELETING';
    case ConnectionState.updating:
      return 'UPDATING';
  }
}