tryGetMap<T> method

Map<String, T>? tryGetMap<T>(
  1. String key
)

Try child map with given key The difference between getMap and getObj, is that getMap returns Map<String, T> instead of JsonObject

Implementation

Map<String, T>? tryGetMap<T>(String key) => get<JsonObject?>(key)?.cast();