klyn.Object.toDict
method
public toDict() as SortedMap<String, Object>
Description

Returns the object public state as a map (alias of toMap).

Returns

A map view of the object state.

Example
class Point:
    public property x = 10
    public property y = 20

p = Point()
d = p.toDict()
assert d["x"] == 10