toDirectorySize method

DirectorySize toDirectorySize()

Implementation

DirectorySize toDirectorySize() {
  switch (this) {
    case 'Small':
      return DirectorySize.small;
    case 'Large':
      return DirectorySize.large;
  }
  throw Exception('$this is not known in enum DirectorySize');
}