toResourceType method
Implementation
ResourceType toResourceType() {
switch (this) {
case 'JAR':
return ResourceType.jar;
case 'FILE':
return ResourceType.file;
case 'ARCHIVE':
return ResourceType.archive;
}
throw Exception('$this is not known in enum ResourceType');
}