src/XQueue/Maileon/API/JSON/AbstractJSONWrapper.php
function fromArray($object_vars) {
        // copy each key to the property named the same way; if the property
        // is a serializable Maileon class, call fromArray on it
        foreach($object_vars as $key => $value) {
            if(class_exists('AbstractJSONWrapper') && is_subclass_of( $this->{$key},'AbstractJSONWrapper' )) {
                $this->{$key}->fromArray($value);
            } else {
                $this->{$key} = $value;
            }
        }
    }
function fromArray($object_vars) {
        // copy each key to the property named the same way; if the property
        // is a serializable Maileon class, call fromArray on it
        foreach($object_vars as $key => $value) {
            if(class_exists('AbstractJSONWrapper') && is_subclass_of( $this->{$key},'AbstractJSONWrapper' )) {
                $this->{$key}->fromArray($value);
            } else {
                $this->{$key} = $value;
            }
        }
    }
Used to initialize this object from JSON. Override this to modify JSON
parameters.

@param array $object_vars
The array from json_decode