initInstance static method

  1. @Deprecated('Use OpenTool.fromJson or SchemaResolver for document-local refs.')
void initInstance(
  1. Map<String, dynamic> schemasJson
)

Implementation

@Deprecated(
  'Use OpenTool.fromJson or SchemaResolver for document-local refs.',
)
static void initInstance(Map<String, dynamic> schemasJson) {
  _definitions = Map<String, dynamic>.from(schemasJson);
  _schemas = SchemaResolver(_definitions).resolveAll();
}