public function serializeParameters()
{
$params = array();
if ($this->_unsavedValues) {
foreach ($this->_unsavedValues->toArray() as $k) {
$v = $this->{$k};
if ($v === NULL) {
$v = '';
}
$params[$k] = $v;
}
}
// Get nested updates.
foreach (self::$nestedUpdatableAttributes->toArray() as $property) {
if (isset($this->{$property}) && $this->{$property} instanceof PingppObject) {
$params[$property] = $this->{$property}->serializeParameters();
}
}
return $params;
}