public Task BindModelAsync(ModelBindingContext bindingContext) { varvalue = bindingContext.ValueProvider .GetValue(bindingContext.FieldName);
if (string.IsNullOrEmpty(value.FirstValue)) return Task.CompletedTask;
var result = JsonSerializer .Deserialize(value.FirstValue, bindingContext.ModelType, serializerOption); bindingContext.Result = ModelBindingResult.Success(result);