toConnectionState method
Implementation
ConnectionState toConnectionState() {
switch (this) {
case 'PENDING':
return ConnectionState.pending;
case 'AVAILABLE':
return ConnectionState.available;
case 'DELETING':
return ConnectionState.deleting;
case 'UPDATING':
return ConnectionState.updating;
}
throw Exception('$this is not known in enum ConnectionState');
}