pick function
Picks the value of a json
-like dart data structure consisting of Maps,
Lists and objects at location arg0, arg1 ... arg9
args may be
If objects are deeper than 10, use pickDeep
Implementation
Pick pick(
/*Map|List|null*/ dynamic json, [
/*String|int|null*/ Object? arg0,
/*String|int|null*/ Object? arg1,
/*String|int|null*/ Object? arg2,
/*String|int|null*/ Object? arg3,
/*String|int|null*/ Object? arg4,
/*String|int|null*/ Object? arg5,
/*String|int|null*/ Object? arg6,
/*String|int|null*/ Object? arg7,
/*String|int|null*/ Object? arg8,
/*String|int|null*/ Object? arg9,
]) {
final selectors = [arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9]
// null is a sign for unused 'varargs'
.where((dynamic it) => it != null)
.cast<Object>()
.toList(growable: false);
return _drillDown(json, selectors);
}