public async Task <IDictionary <string, object?>?> GetValues( [Parent] Component component, [Service] IComponentService componentService, CancellationToken cancellationToken) { if (component.Values is null) { return(null); } ISchema?schema = await componentService.GetSchemaByIdAsync( component.Id, cancellationToken); if (schema is null) { return(null); } var document = JsonDocument.Parse(component.Values !); return(ValueHelper.DeserializeDictionary(document.RootElement, schema.QueryType)); }