JsonFunctions<D> extension

on

Methods

asCast<T>(String key) → T

Available on JsonMap<D>, provided by the JsonFunctions extension

asFormData() String?

Available on JsonMap<D>, provided by the JsonFunctions extension

get(String key) → D?

Available on JsonMap<D>, provided by the JsonFunctions extension

returns the value associated with that key. Returns null if key is not defined
maybe<T, I>(String key, T? parser(I map)) → T?

Available on JsonMap<D>, provided by the JsonFunctions extension

maybeCast<T>(String key) → T?

Available on JsonMap<D>, provided by the JsonFunctions extension

return
maybeCastList<T>(String key) List<T>?

Available on JsonMap<D>, provided by the JsonFunctions extension

set(String key, D value, [D onConflict(D old, D value)?]) JsonMap<D>

Available on JsonMap<D>, provided by the JsonFunctions extension

tryCast<T>(String key) → T?

Available on JsonMap<D>, provided by the JsonFunctions extension

where(bool test(String k, D v)) JsonMap

Available on JsonMap<D>, provided by the JsonFunctions extension

returns a map that only contains items that conform to test