pickDeep function

Pick pickDeep(
  1. dynamic json,
  2. List<Object> selector
)

Picks the value of json by traversing the object along the values in selector one by one

Valid values for the items in selector are

  • a String to pick values from a Map
  • or int when you want to pick a value at index from a List

Implementation

Pick pickDeep(
  /*Map|List|null*/ dynamic json,
  List< /*String|int*/ Object> selector,
) {
  return _drillDown(json, selector);
}