topLevelKey property

String? topLevelKey
final

When serializing to REST, the payload may need to be nested within a top level key. Similarly, when deserializing to REST, the response may be nested within a top level key. If no key is defined, the first value will be returned during deserialization.

This configuration is overriden when a query specifies providerArgs['topLevelKey'].

Example Given the payload:

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

The topLevelKey would be "user".

Implementation

final String? topLevelKey;