toType method

Type toType()

Implementation

Type toType() {
  switch (this) {
    case 'OpenApi3':
      return Type.openApi3;
    case 'JSONSchemaDraft4':
      return Type.jSONSchemaDraft4;
  }
  throw Exception('$this is not known in enum Type');
}