jilleJr/Newtonsoft.Json-for-Unity added these automatically, but the
Unity package manager version doesn't.
They're not always needed, but just makes the library a lot easier to
use if you use naming strategy attributes on the deserializable objects,
i.e.:
[JsonObject(NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
private class InsertResponse
{
public int? AffectedRows { get; set; }
}
// ...
var result = await apiClient.Send(() => new { result = new InsertResponse() }, request);
jilleJr/Newtonsoft.Json-for-Unity added these automatically, but the Unity package manager version doesn't.
They're not always needed, but just makes the library a lot easier to use if you use naming strategy attributes on the deserializable objects, i.e.:
Now works correctly.