dig<T> method

T dig<T>(
  1. List keys
)

Get value across nested objects/list with given keys

Implementation

T dig<T>(List keys) {
  if (keys.isEmpty) {
    throw JsonTypeException('No keys provided');
  }

  return castJsonType(nestedKeyName(keys), digJsonTree(this, keys, 0));
}