returns a map that only contains items that conform to test
test
JsonMap where(bool Function(String k, D v) test) { JsonMap m = {}; forEach((k, v) { if (test(k, v)) m.putIfAbsent(k, () => v); }); return m; }