Version: v0.7.0 - 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