method YAMLMap.prototype.toJSONimport { YAMLMap } from "https://deno.land/x/windmill@v1.373.0/node_modules/yaml/dist/nodes/YAMLMap.d.ts"; toJSON<T extends MapLike = Map<unknown, unknown>>(_?: unknown,ctx?: ToJSContext,Type?: { new (): T; },): anyType ParametersoptionalT extends MapLike = Map<unknown, unknown>Parametersoptional_: unknown Conversion context, originally set in Document#toJS() optionalctx: ToJSContext If set, forces the returned collection type optionalType: { new (): T; }ReturnsanyInstance of Type, Map, or Object