toNetworkStatus method
Implementation
NetworkStatus toNetworkStatus() {
switch (this) {
case 'CREATING':
return NetworkStatus.creating;
case 'AVAILABLE':
return NetworkStatus.available;
case 'CREATE_FAILED':
return NetworkStatus.createFailed;
case 'DELETING':
return NetworkStatus.deleting;
case 'DELETED':
return NetworkStatus.deleted;
}
throw Exception('$this is not known in enum NetworkStatus');
}