public toDict() as SortedMap<String, Object>
Returns the object public state as a map (alias of toMap).
A map view of the object state.
class Point:
public property x = 10
public property y = 20
p = Point()
d = p.toDict()
assert d["x"] == 10