in dingtalk/php/src/bizfinance_1_0/Models/BatchAddInvoiceRequest/generalInvoiceVOList.php [663:878]
public static function fromMap($map = [])
{
$model = new self();
if (isset($map['accountPeriod'])) {
$model->accountPeriod = $map['accountPeriod'];
}
if (isset($map['amount'])) {
$model->amount = $map['amount'];
}
if (isset($map['amountWithTax'])) {
$model->amountWithTax = $map['amountWithTax'];
}
if (isset($map['checkCode'])) {
$model->checkCode = $map['checkCode'];
}
if (isset($map['checkTime'])) {
$model->checkTime = $map['checkTime'];
}
if (isset($map['domesticOrIntl'])) {
$model->domesticOrIntl = $map['domesticOrIntl'];
}
if (isset($map['drawerName'])) {
$model->drawerName = $map['drawerName'];
}
if (isset($map['drewDate'])) {
$model->drewDate = $map['drewDate'];
}
if (isset($map['eFlightItineraryDetailVOList'])) {
if (!empty($map['eFlightItineraryDetailVOList'])) {
$model->eFlightItineraryDetailVOList = [];
$n = 0;
foreach ($map['eFlightItineraryDetailVOList'] as $item) {
$model->eFlightItineraryDetailVOList[$n++] = null !== $item ? eFlightItineraryDetailVOList::fromMap($item) : $item;
}
}
}
if (isset($map['eTicketNo'])) {
$model->eTicketNo = $map['eTicketNo'];
}
if (isset($map['eTrainTicketDetailVOList'])) {
if (!empty($map['eTrainTicketDetailVOList'])) {
$model->eTrainTicketDetailVOList = [];
$n = 0;
foreach ($map['eTrainTicketDetailVOList'] as $item) {
$model->eTrainTicketDetailVOList[$n++] = null !== $item ? eTrainTicketDetailVOList::fromMap($item) : $item;
}
}
}
if (isset($map['electronicUrl'])) {
$model->electronicUrl = $map['electronicUrl'];
}
if (isset($map['fileId'])) {
$model->fileId = $map['fileId'];
}
if (isset($map['financeType'])) {
$model->financeType = $map['financeType'];
}
if (isset($map['fundType'])) {
$model->fundType = $map['fundType'];
}
if (isset($map['generalInvoiceDetailVOList'])) {
if (!empty($map['generalInvoiceDetailVOList'])) {
$model->generalInvoiceDetailVOList = [];
$n = 0;
foreach ($map['generalInvoiceDetailVOList'] as $item) {
$model->generalInvoiceDetailVOList[$n++] = null !== $item ? generalInvoiceDetailVOList::fromMap($item) : $item;
}
}
}
if (isset($map['gpNo'])) {
$model->gpNo = $map['gpNo'];
}
if (isset($map['imageUrl'])) {
$model->imageUrl = $map['imageUrl'];
}
if (isset($map['invoiceCode'])) {
$model->invoiceCode = $map['invoiceCode'];
}
if (isset($map['invoiceNo'])) {
$model->invoiceNo = $map['invoiceNo'];
}
if (isset($map['invoiceStatus'])) {
$model->invoiceStatus = $map['invoiceStatus'];
}
if (isset($map['invoiceType'])) {
$model->invoiceType = $map['invoiceType'];
}
if (isset($map['machineCode'])) {
$model->machineCode = $map['machineCode'];
}
if (isset($map['ofdUrl'])) {
$model->ofdUrl = $map['ofdUrl'];
}
if (isset($map['oilFlag'])) {
$model->oilFlag = $map['oilFlag'];
}
if (isset($map['passenger'])) {
$model->passenger = $map['passenger'];
}
if (isset($map['passengerUserId'])) {
$model->passengerUserId = $map['passengerUserId'];
}
if (isset($map['payee'])) {
$model->payee = $map['payee'];
}
if (isset($map['pdfUrl'])) {
$model->pdfUrl = $map['pdfUrl'];
}
if (isset($map['processInstCode'])) {
$model->processInstCode = $map['processInstCode'];
}
if (isset($map['processInstType'])) {
$model->processInstType = $map['processInstType'];
}
if (isset($map['purchaserAddress'])) {
$model->purchaserAddress = $map['purchaserAddress'];
}
if (isset($map['purchaserBankAccount'])) {
$model->purchaserBankAccount = $map['purchaserBankAccount'];
}
if (isset($map['purchaserBankNameAccount'])) {
$model->purchaserBankNameAccount = $map['purchaserBankNameAccount'];
}
if (isset($map['purchaserName'])) {
$model->purchaserName = $map['purchaserName'];
}
if (isset($map['purchaserTaxNo'])) {
$model->purchaserTaxNo = $map['purchaserTaxNo'];
}
if (isset($map['purchaserTel'])) {
$model->purchaserTel = $map['purchaserTel'];
}
if (isset($map['receiverEmail'])) {
$model->receiverEmail = $map['receiverEmail'];
}
if (isset($map['receiverName'])) {
$model->receiverName = $map['receiverName'];
}
if (isset($map['receiverTel'])) {
$model->receiverTel = $map['receiverTel'];
}
if (isset($map['remark'])) {
$model->remark = $map['remark'];
}
if (isset($map['reviewer'])) {
$model->reviewer = $map['reviewer'];
}
if (isset($map['secondHandCarInvoiceDetailList'])) {
if (!empty($map['secondHandCarInvoiceDetailList'])) {
$model->secondHandCarInvoiceDetailList = [];
$n = 0;
foreach ($map['secondHandCarInvoiceDetailList'] as $item) {
$model->secondHandCarInvoiceDetailList[$n++] = null !== $item ? secondHandCarInvoiceDetailList::fromMap($item) : $item;
}
}
}
if (isset($map['sellerAddress'])) {
$model->sellerAddress = $map['sellerAddress'];
}
if (isset($map['sellerBankAccount'])) {
$model->sellerBankAccount = $map['sellerBankAccount'];
}
if (isset($map['sellerBankNameAccount'])) {
$model->sellerBankNameAccount = $map['sellerBankNameAccount'];
}
if (isset($map['sellerName'])) {
$model->sellerName = $map['sellerName'];
}
if (isset($map['sellerTaxNo'])) {
$model->sellerTaxNo = $map['sellerTaxNo'];
}
if (isset($map['sellerTel'])) {
$model->sellerTel = $map['sellerTel'];
}
if (isset($map['spaceId'])) {
$model->spaceId = $map['spaceId'];
}
if (isset($map['supplySign'])) {
$model->supplySign = $map['supplySign'];
}
if (isset($map['taxAmount'])) {
$model->taxAmount = $map['taxAmount'];
}
if (isset($map['usedVehicleSaleDetailVOList'])) {
if (!empty($map['usedVehicleSaleDetailVOList'])) {
$model->usedVehicleSaleDetailVOList = [];
$n = 0;
foreach ($map['usedVehicleSaleDetailVOList'] as $item) {
$model->usedVehicleSaleDetailVOList[$n++] = null !== $item ? usedVehicleSaleDetailVOList::fromMap($item) : $item;
}
}
}
if (isset($map['vehicleSaleDetailVOList'])) {
if (!empty($map['vehicleSaleDetailVOList'])) {
$model->vehicleSaleDetailVOList = [];
$n = 0;
foreach ($map['vehicleSaleDetailVOList'] as $item) {
$model->vehicleSaleDetailVOList[$n++] = null !== $item ? vehicleSaleDetailVOList::fromMap($item) : $item;
}
}
}
if (isset($map['verifyStatus'])) {
$model->verifyStatus = $map['verifyStatus'];
}
if (isset($map['voucherCode'])) {
$model->voucherCode = $map['voucherCode'];
}
if (isset($map['voucherStatus'])) {
$model->voucherStatus = $map['voucherStatus'];
}
if (isset($map['xmlUrl'])) {
$model->xmlUrl = $map['xmlUrl'];
}
return $model;
}