typedObjectOrNull<T, R> method
Get Map<T,R> by String key.
Throws SquintException if key is not found
or values are not all of type R
.
Implementation
Map<T, R>? typedObjectOrNull<T, R>({
required String key,
required T Function(String) toTypedKey,
R Function(dynamic)? toTypedValue,
}) =>
objectNodeOrNull(key)?.getDataAsTypedMap(
toTypedKey: toTypedKey, toTypedValue: toTypedValue);