toType method

Type toType()

Implementation

Type toType() {
  switch (this) {
    case 'SYSTEM':
      return Type.system;
    case 'CUSTOM':
      return Type.custom;
  }
  throw Exception('$this is not known in enum Type');
}