public function init($map = null, $prefix = '') { if ($map != null) { if (PPUtils::array_match_key($map, $prefix . "baseAmount.")) { $newPrefix = $prefix . "baseAmount."; $this->baseAmount = new CurrencyType(); $this->baseAmount->init($map, $newPrefix); } if (PPUtils::array_match_key($map, $prefix . "currencyList.")) { $newPrefix = $prefix . "currencyList."; $this->currencyList = new CurrencyList(); $this->currencyList->init($map, $newPrefix); } } }