create method

Future<void> create(
  1. String path, [
  2. Map<String, dynamic>? json
])

Implementation

Future<void> create(String path, [Map<String, dynamic>? json]) async {
  final normalizedPath = _normalizeSyncPath(path);
  final output = await _invoke(
    "create",
    ToolContentInput(JsonContent(json: {"path": normalizedPath, "json": json, "schema": null, "schema_path": null})),
  );
  if (output is! ToolContentOutput) {
    throw _unexpectedResponseError(operation: "create");
  }
}