This is probably a really basic question about REST APIs. I just started reading the docs and don't see how to implement an API for an object/model that has sub-objects. Instead there is only a description of objects with primitives only (int, string, etc).
Is there an example with an object hierarchy? Or maybe the server model just uses IDs in class definitions to refer to sub-objects, like how Google's NDB does it?
From docs:
This means you can create the structure you need, the only requirement is that all objects in it must be constructed of in that particular way.
An example:
One limitation I did not like much is that you cannot use inheritance in these classes, but then again the whole point of the rpc package is to create an API that can be consumed by any client, not just dart code.