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

        if (null !== $this->created) {
            $json['created'] = $this->created->format(\DateTime::ISO8601);
        }
        if (null !== $this->createdBy) {
            $json['createdBy'] = $this->createdBy;
        }
        if (null !== $this->updated) {
            $json['updated'] = $this->updated->format(\DateTime::ISO8601);
        }
        if (null !== $this->updatedBy) {
            $json['updatedBy'] = $this->updatedBy;
        }
        if (null !== $this->deleted) {
            $json['deleted'] = $this->deleted;
        }
        if (null !== $this->name) {
            $json['name'] = $this->name;
        }
        if (null !== $this->systemName) {
            $json['systemName'] = $this->systemName;
        }
        if (null !== $this->description) {
            $json['description'] = $this->description;
        }
        if (null !== $this->dataTypeId) {
            $json['dataTypeId'] = $this->dataTypeId;
        }
        if (null !== $this->definition) {
            $json['definition'] = $this->definition;
        }

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

        if (null !== $this->created) {
            $json['created'] = $this->created->format(\DateTime::ISO8601);
        }
        if (null !== $this->createdBy) {
            $json['createdBy'] = $this->createdBy;
        }
        if (null !== $this->updated) {
            $json['updated'] = $this->updated->format(\DateTime::ISO8601);
        }
        if (null !== $this->updatedBy) {
            $json['updatedBy'] = $this->updatedBy;
        }
        if (null !== $this->deleted) {
            $json['deleted'] = $this->deleted;
        }
        if (null !== $this->name) {
            $json['name'] = $this->name;
        }
        if (null !== $this->systemName) {
            $json['systemName'] = $this->systemName;
        }
        if (null !== $this->description) {
            $json['description'] = $this->description;
        }
        if (null !== $this->dataTypeId) {
            $json['dataTypeId'] = $this->dataTypeId;
        }
        if (null !== $this->definition) {
            $json['definition'] = $this->definition;
        }

        return $json;
    }
public function jsonSerialize ( ) { $ json = [ ] ; if ( null !== $ this -> created ) { $ json [ 'created' ] = $ this -> created -> format ( \ DateTime :: ISO8601 ) ; } if ( null !== $ this -> createdBy ) { $ json [ 'createdBy' ] = $ this -> createdBy ; } if ( null !== $ this -> updated ) { $ json [ 'updated' ] = $ this -> updated -> format ( \ DateTime :: ISO8601 ) ; } if ( null !== $ this -> updatedBy ) { $ json [ 'updatedBy' ] = $ this -> updatedBy ; } if ( null !== $ this -> deleted ) { $ json [ 'deleted' ] = $ this -> deleted ; } if ( null !== $ this -> name ) { $ json [ 'name' ] = $ this -> name ; } if ( null !== $ this -> systemName ) { $ json [ 'systemName' ] = $ this -> systemName ; } if ( null !== $ this -> description ) { $ json [ 'description' ] = $ this -> description ; } if ( null !== $ this -> dataTypeId ) { $ json [ 'dataTypeId' ] = $ this -> dataTypeId ; } if ( null !== $ this -> definition ) { $ json [ 'definition' ] = $ this -> definition ; } return $ json ; }
Gets all data that should be available in a json representation.

@return array an associative array of the available variables
Gets all data that should be available in a json representation .