toValue method
Implementation
String toValue() {
switch (this) {
case ConnectionState.ordering:
return 'ordering';
case ConnectionState.requested:
return 'requested';
case ConnectionState.pending:
return 'pending';
case ConnectionState.available:
return 'available';
case ConnectionState.down:
return 'down';
case ConnectionState.deleting:
return 'deleting';
case ConnectionState.deleted:
return 'deleted';
case ConnectionState.rejected:
return 'rejected';
case ConnectionState.unknown:
return 'unknown';
}
}