toModificationResourceEnum method
Implementation
ModificationResourceEnum toModificationResourceEnum() {
switch (this) {
case 'ROOT_VOLUME':
return ModificationResourceEnum.rootVolume;
case 'USER_VOLUME':
return ModificationResourceEnum.userVolume;
case 'COMPUTE_TYPE':
return ModificationResourceEnum.computeType;
}
throw Exception('$this is not known in enum ModificationResourceEnum');
}