Model/Property.php
public function jsonSerialize()
    {
        $json = [];

        if (null !== $this->systemName) {
            $json['systemName'] = $this->systemName;
        }
        if (null !== $this->value) {
            if ($this->value instanceof \DateTime) {
                $json['value'] = $this->value->format(\DateTime::ISO8601);
            } else {
                $json['value'] = $this->value;
            }
        }

        return $json;
    }
public function jsonSerialize()
    {
        $json = [];

        if (null !== $this->systemName) {
            $json['systemName'] = $this->systemName;
        }
        if (null !== $this->value) {
            if ($this->value instanceof \DateTime) {
                $json['value'] = $this->value->format(\DateTime::ISO8601);
            } else {
                $json['value'] = $this->value;
            }
        }

        return $json;
    }
Gets all data that should be available in a json representation.

@return array an associative array of the available variables