toInterconnectState method
Implementation
InterconnectState toInterconnectState() {
switch (this) {
case 'requested':
return InterconnectState.requested;
case 'pending':
return InterconnectState.pending;
case 'available':
return InterconnectState.available;
case 'down':
return InterconnectState.down;
case 'deleting':
return InterconnectState.deleting;
case 'deleted':
return InterconnectState.deleted;
case 'unknown':
return InterconnectState.unknown;
}
throw Exception('$this is not known in enum InterconnectState');
}