tryDig<T> method
Try get value across nested objects/list with given keys
. It returns null
if failed.
Implementation
T? tryDig<T>(List keys) {
try {
return dig<T>(keys);
} on JsonTypeException {
return null;
}
}
Try get value across nested objects/list with given keys
. It returns null
if failed.
T? tryDig<T>(List keys) {
try {
return dig<T>(keys);
} on JsonTypeException {
return null;
}
}