Change endpoint to return Map?

Hi all,

I have an endpoint (@Endpoint) that contains methods that return java.util.Map<String, Integer>. They are currently converted to { [key: string] : number; }.
Is it possible to have it return ES6 Map instead?

Best Regards

Rasmus

Edit: been reading this: https://vaadin.com/docs/latest/fusion/advanced/type-conversion