public native toDict() as Map<String, Object>
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.
A dictionary view of the object state.