toVirtualInterfaceState method
Implementation
VirtualInterfaceState toVirtualInterfaceState() {
switch (this) {
case 'confirming':
return VirtualInterfaceState.confirming;
case 'verifying':
return VirtualInterfaceState.verifying;
case 'pending':
return VirtualInterfaceState.pending;
case 'available':
return VirtualInterfaceState.available;
case 'down':
return VirtualInterfaceState.down;
case 'deleting':
return VirtualInterfaceState.deleting;
case 'deleted':
return VirtualInterfaceState.deleted;
case 'rejected':
return VirtualInterfaceState.rejected;
case 'unknown':
return VirtualInterfaceState.unknown;
}
throw Exception('$this is not known in enum VirtualInterfaceState');
}