fromKey property

String? fromKey
final

When deserializing from REST, the response may be nested within a top level key. If no key is defined, the first value will be returned. This configuration is overriden when a query specifies providerArgs['topLevelKey'].

Example Given the API:

{ "users" : {"id" : 1, "name" : "Thomas" }}

The fromKey would be "users".

This field is copied to the Adapter.

Implementation

final String? fromKey;