path property
The path to the value to match.
The default value is ['type']
.
Every element in the List is a path segment and must be a String or int. The List must not be empty. Strings are interpreted as keys in dictionaries and ints are interpreted as indexes in arrays.
Examples
Description | Path |
---|---|
Root | ['type'] |
Nested | ['metaData', 'type'] |
Array | ['typeDescriptors', 0, 'id'] |
Implementation
final List<Object> path;