Absolutely – you just need to cast the null value to the right type so that the compiler knows which type you want for that property. For example:
return Ok(new {
Answer = (string) null,
Text = ...,
...
});
Absolutely – you just need to cast the null value to the right type so that the compiler knows which type you want for that property. For example:
return Ok(new {
Answer = (string) null,
Text = ...,
...
});