tryGet<T> method
Try get value as T
with given key
. It returns null
if failed.
Implementation
T? tryGet<T>(String key) {
try {
return get<T>(key);
} on JsonTypeException {
return null;
}
}
Try get value as T
with given key
. It returns null
if failed.
T? tryGet<T>(String key) {
try {
return get<T>(key);
} on JsonTypeException {
return null;
}
}