public static <K, V> JsonCodec<Map<K, V>> mapJsonCodec(Class<K> keyType, JsonCodec<V> valueType)
{
checkNotNull(keyType, "keyType is null");
checkNotNull(valueType, "valueType is null");
ParameterizedTypeImpl mapType = new ParameterizedTypeImpl(null, Map.class, keyType, valueType.getType());
return new JsonCodec<>(OBJECT_MAPPER_SUPPLIER.get(), mapType);
}