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