klyn.Object.toDict
method

    public native toDict() as Map<String, Object>

Description

Returns the object public state as a dictionary.

The default implementation reuses the runtime JSON serializer, which already knows how to expose registered public properties and fields.

Parameters

- exclude Optional list of member names to remove from the result.

Returns

A dictionary view of the object state.