toPackageType method

PackageType toPackageType()

Implementation

PackageType toPackageType() {
  switch (this) {
    case 'Zip':
      return PackageType.zip;
    case 'Image':
      return PackageType.image;
  }
  throw Exception('$this is not known in enum PackageType');
}