protected static function parseJsonToNewObject($json, $client = null) { $parsedObject = json_decode($json, true); if (is_null($parsedObject)) { return null; } $obj = Zipmark_Base::_createObject($parsedObject); $obj->_client = $client; return $obj; }