toFileSystemLifecycle method

FileSystemLifecycle toFileSystemLifecycle()

Implementation

FileSystemLifecycle toFileSystemLifecycle() {
  switch (this) {
    case 'AVAILABLE':
      return FileSystemLifecycle.available;
    case 'CREATING':
      return FileSystemLifecycle.creating;
    case 'FAILED':
      return FileSystemLifecycle.failed;
    case 'DELETING':
      return FileSystemLifecycle.deleting;
    case 'MISCONFIGURED':
      return FileSystemLifecycle.misconfigured;
    case 'UPDATING':
      return FileSystemLifecycle.updating;
  }
  throw Exception('$this is not known in enum FileSystemLifecycle');
}