Version: v0.8.1 - Beta.  We welcome contributors & feedback.

Object.zGetFields

zGetFields() -> map

Description

Return a Map of all fields for this object, with their values.

class MyClass {
    fields {
        id: 123
        color: 'green'
    }
}

$object = MyClass()

$object.zGetFields()
//= { id: 123, color: 'green' }

See Also