toCriticality method

Criticality toCriticality()

Implementation

Criticality toCriticality() {
  switch (this) {
    case 'PREFERRED':
      return Criticality.preferred;
    case 'REMOVED':
      return Criticality.removed;
    case 'REQUIRED':
      return Criticality.required;
  }
  throw Exception('$this is not known in enum Criticality');
}