getDataAsTypedMap<T, R> method
Return raw (unwrapped) object data as Map where R is not of type JsonNode but a dart StandardType (String, bool, etc).
Implementation
Map<T, R> getDataAsTypedMap<T, R>({
T Function(String)? toTypedKey,
R Function(dynamic)? toTypedValue,
}) =>
data.map((key, value) => MapEntry(toTypedKey?.call(key) ?? key as T,
toTypedValue?.call(_unwrapValue(value)) ?? _unwrapValue(value)));