We have an issue with the dart client when accessing data from the api.
On our Endpoint we return a List to the client.
Now as stated in your documentation we needed to add List to a UnknownTypes Class on the api, so that this type is accessible for mapping in the dart client.
This solution works now as long as we are in a debug build. When we run flutter build with the --release parameter we get the error on the dart client with the message:
Unknown Type '_GrowableList<FooDto>', see: https://docs.servicestack.net/dart-add-servicestack-reference#generating-unknown-types
I now did some research on why this could be happening and found following sources:
They talk about that the property runtimeType in dart is not returning the same if you have a List in release or debug build.
I found now in your code that the mapping is also using this property so this seems to be the source of the issue.
Row 490 & 503
Could you please fix this issue, since it prevents the api from working on the target devices.