public static function fromMap()

in btripopen-20220520/src/Models/TrainBillSettlementQueryResponseBody/module/dataList.php [999:1391]


    public static function fromMap($map = [])
    {
        $model = new self();
        if (isset($map['alipay_trade_no'])) {
            $model->alipayTradeNo = $map['alipay_trade_no'];
        }

        if (isset($map['apply_arr_city_code'])) {
            $model->applyArrCityCode = $map['apply_arr_city_code'];
        }

        if (isset($map['apply_arr_city_name'])) {
            $model->applyArrCityName = $map['apply_arr_city_name'];
        }

        if (isset($map['apply_dep_city_code'])) {
            $model->applyDepCityCode = $map['apply_dep_city_code'];
        }

        if (isset($map['apply_dep_city_name'])) {
            $model->applyDepCityName = $map['apply_dep_city_name'];
        }

        if (isset($map['apply_extend_field'])) {
            $model->applyExtendField = $map['apply_extend_field'];
        }

        if (isset($map['apply_id'])) {
            $model->applyId = $map['apply_id'];
        }

        if (isset($map['arr_city_code'])) {
            $model->arrCityCode = $map['arr_city_code'];
        }

        if (isset($map['arr_city_name'])) {
            $model->arrCityName = $map['arr_city_name'];
        }

        if (isset($map['arr_date'])) {
            $model->arrDate = $map['arr_date'];
        }

        if (isset($map['arr_station'])) {
            $model->arrStation = $map['arr_station'];
        }

        if (isset($map['arr_station_location'])) {
            $model->arrStationLocation = $map['arr_station_location'];
        }

        if (isset($map['arr_station_location_code'])) {
            $model->arrStationLocationCode = $map['arr_station_location_code'];
        }

        if (isset($map['arr_time'])) {
            $model->arrTime = $map['arr_time'];
        }

        if (isset($map['bill_record_time'])) {
            $model->billRecordTime = $map['bill_record_time'];
        }

        if (isset($map['book_time'])) {
            $model->bookTime = $map['book_time'];
        }

        if (isset($map['booker_id'])) {
            $model->bookerId = $map['booker_id'];
        }

        if (isset($map['booker_job_no'])) {
            $model->bookerJobNo = $map['booker_job_no'];
        }

        if (isset($map['booker_name'])) {
            $model->bookerName = $map['booker_name'];
        }

        if (isset($map['business_trip_result'])) {
            $model->businessTripResult = $map['business_trip_result'];
        }

        if (isset($map['cabin_max_price'])) {
            $model->cabinMaxPrice = $map['cabin_max_price'];
        }

        if (isset($map['capital_direction'])) {
            $model->capitalDirection = $map['capital_direction'];
        }

        if (isset($map['cascade_department'])) {
            $model->cascadeDepartment = $map['cascade_department'];
        }

        if (isset($map['category_desc'])) {
            $model->categoryDesc = $map['category_desc'];
        }

        if (isset($map['change_affiliate_no'])) {
            $model->changeAffiliateNo = $map['change_affiliate_no'];
        }

        if (isset($map['change_apply_id'])) {
            $model->changeApplyId = $map['change_apply_id'];
        }

        if (isset($map['change_fee'])) {
            $model->changeFee = $map['change_fee'];
        }

        if (isset($map['change_result'])) {
            $model->changeResult = $map['change_result'];
        }

        if (isset($map['coach_no'])) {
            $model->coachNo = $map['coach_no'];
        }

        if (isset($map['cost_center'])) {
            $model->costCenter = $map['cost_center'];
        }

        if (isset($map['cost_center_number'])) {
            $model->costCenterNumber = $map['cost_center_number'];
        }

        if (isset($map['coupon'])) {
            $model->coupon = $map['coupon'];
        }

        if (isset($map['deductible_tax'])) {
            $model->deductibleTax = $map['deductible_tax'];
        }

        if (isset($map['dep_city_code'])) {
            $model->depCityCode = $map['dep_city_code'];
        }

        if (isset($map['dep_city_name'])) {
            $model->depCityName = $map['dep_city_name'];
        }

        if (isset($map['dep_station_location'])) {
            $model->depStationLocation = $map['dep_station_location'];
        }

        if (isset($map['dep_station_location_code'])) {
            $model->depStationLocationCode = $map['dep_station_location_code'];
        }

        if (isset($map['department'])) {
            $model->department = $map['department'];
        }

        if (isset($map['department_id'])) {
            $model->departmentId = $map['department_id'];
        }

        if (isset($map['dept_date'])) {
            $model->deptDate = $map['dept_date'];
        }

        if (isset($map['dept_station'])) {
            $model->deptStation = $map['dept_station'];
        }

        if (isset($map['dept_time'])) {
            $model->deptTime = $map['dept_time'];
        }

        if (isset($map['exceed_reason'])) {
            $model->exceedReason = $map['exceed_reason'];
        }

        if (isset($map['fee_type'])) {
            $model->feeType = $map['fee_type'];
        }

        if (isset($map['fee_type_desc'])) {
            $model->feeTypeDesc = $map['fee_type_desc'];
        }

        if (isset($map['index'])) {
            $model->index = $map['index'];
        }

        if (isset($map['invoice_title'])) {
            $model->invoiceTitle = $map['invoice_title'];
        }

        if (isset($map['is_transfer_order'])) {
            $model->isTransferOrder = $map['is_transfer_order'];
        }

        if (isset($map['long_ticket_no'])) {
            $model->longTicketNo = $map['long_ticket_no'];
        }

        if (isset($map['max_cabin'])) {
            $model->maxCabin = $map['max_cabin'];
        }

        if (isset($map['order_id'])) {
            $model->orderId = $map['order_id'];
        }

        if (isset($map['order_price'])) {
            $model->orderPrice = $map['order_price'];
        }

        if (isset($map['order_ticket_no'])) {
            $model->orderTicketNo = $map['order_ticket_no'];
        }

        if (isset($map['over_apply_id'])) {
            $model->overApplyId = $map['over_apply_id'];
        }

        if (isset($map['payment_department_id'])) {
            $model->paymentDepartmentId = $map['payment_department_id'];
        }

        if (isset($map['payment_department_name'])) {
            $model->paymentDepartmentName = $map['payment_department_name'];
        }

        if (isset($map['primary_id'])) {
            $model->primaryId = $map['primary_id'];
        }

        if (isset($map['print_ticket_price'])) {
            $model->printTicketPrice = $map['print_ticket_price'];
        }

        if (isset($map['project_code'])) {
            $model->projectCode = $map['project_code'];
        }

        if (isset($map['project_name'])) {
            $model->projectName = $map['project_name'];
        }

        if (isset($map['refund_affiliate_no'])) {
            $model->refundAffiliateNo = $map['refund_affiliate_no'];
        }

        if (isset($map['refund_apply_id'])) {
            $model->refundApplyId = $map['refund_apply_id'];
        }

        if (isset($map['refund_fee'])) {
            $model->refundFee = $map['refund_fee'];
        }

        if (isset($map['refund_reason'])) {
            $model->refundReason = $map['refund_reason'];
        }

        if (isset($map['remark'])) {
            $model->remark = $map['remark'];
        }

        if (isset($map['reserve_mode'])) {
            $model->reserveMode = $map['reserve_mode'];
        }

        if (isset($map['run_time'])) {
            $model->runTime = $map['run_time'];
        }

        if (isset($map['scene_id'])) {
            $model->sceneId = $map['scene_id'];
        }

        if (isset($map['scene_name'])) {
            $model->sceneName = $map['scene_name'];
        }

        if (isset($map['seat_no'])) {
            $model->seatNo = $map['seat_no'];
        }

        if (isset($map['seat_type'])) {
            $model->seatType = $map['seat_type'];
        }

        if (isset($map['service_fee'])) {
            $model->serviceFee = $map['service_fee'];
        }

        if (isset($map['settle_type_desc'])) {
            $model->settleTypeDesc = $map['settle_type_desc'];
        }

        if (isset($map['settlement_fee'])) {
            $model->settlementFee = $map['settlement_fee'];
        }

        if (isset($map['settlement_grant_fee'])) {
            $model->settlementGrantFee = $map['settlement_grant_fee'];
        }

        if (isset($map['settlement_time'])) {
            $model->settlementTime = $map['settlement_time'];
        }

        if (isset($map['settlement_type'])) {
            $model->settlementType = $map['settlement_type'];
        }

        if (isset($map['short_ticket_no'])) {
            $model->shortTicketNo = $map['short_ticket_no'];
        }

        if (isset($map['speed_package_fee'])) {
            $model->speedPackageFee = $map['speed_package_fee'];
        }

        if (isset($map['status'])) {
            $model->status = $map['status'];
        }

        if (isset($map['status_desc'])) {
            $model->statusDesc = $map['status_desc'];
        }

        if (isset($map['tax_rate'])) {
            $model->taxRate = $map['tax_rate'];
        }

        if (isset($map['third_itinerary_id'])) {
            $model->thirdItineraryId = $map['third_itinerary_id'];
        }

        if (isset($map['ticket_corp_pay_price'])) {
            $model->ticketCorpPayPrice = $map['ticket_corp_pay_price'];
        }

        if (isset($map['ticket_no'])) {
            $model->ticketNo = $map['ticket_no'];
        }

        if (isset($map['ticket_person_pay_price'])) {
            $model->ticketPersonPayPrice = $map['ticket_person_pay_price'];
        }

        if (isset($map['ticket_price'])) {
            $model->ticketPrice = $map['ticket_price'];
        }

        if (isset($map['trade_action_desc'])) {
            $model->tradeActionDesc = $map['trade_action_desc'];
        }

        if (isset($map['train_no'])) {
            $model->trainNo = $map['train_no'];
        }

        if (isset($map['train_type'])) {
            $model->trainType = $map['train_type'];
        }

        if (isset($map['traveler_id'])) {
            $model->travelerId = $map['traveler_id'];
        }

        if (isset($map['traveler_job_no'])) {
            $model->travelerJobNo = $map['traveler_job_no'];
        }

        if (isset($map['traveler_member_type'])) {
            $model->travelerMemberType = $map['traveler_member_type'];
        }

        if (isset($map['traveler_member_type_name'])) {
            $model->travelerMemberTypeName = $map['traveler_member_type_name'];
        }

        if (isset($map['traveler_name'])) {
            $model->travelerName = $map['traveler_name'];
        }

        if (isset($map['voucher_type'])) {
            $model->voucherType = $map['voucher_type'];
        }

        if (isset($map['voucher_type_desc'])) {
            $model->voucherTypeDesc = $map['voucher_type_desc'];
        }

        return $model;
    }