public function jsonSerialize() {
		$vars = get_object_vars($this);
		unset($vars['keyProperties']);
		unset($vars['db']);
		unset($vars['loadedFromDb']);
		unset($vars['typeList']);
		unset($vars['cache']);
		unset($vars['errors']);

		return $vars;
	}
public function jsonSerialize() {
		$vars = get_object_vars($this);
		unset($vars['keyProperties']);
		unset($vars['db']);
		unset($vars['loadedFromDb']);
		unset($vars['typeList']);
		unset($vars['cache']);
		unset($vars['errors']);

		return $vars;
	}
public function jsonSerialize ( ) { $ vars = get_object_vars ( $ this ) ; unset ( $ vars [ 'keyProperties' ] ) ; unset ( $ vars [ 'db' ] ) ; unset ( $ vars [ 'loadedFromDb' ] ) ; unset ( $ vars [ 'typeList' ] ) ; unset ( $ vars [ 'cache' ] ) ; unset ( $ vars [ 'errors' ] ) ; return $ vars ; }
Function for serializing the object through json response.

@return array
Function for serializing the object through json response .