'BillPredictionData', 'billType' => 'BillType', 'endTime' => 'EndTime', 'requestId' => 'RequestId', 'startTime' => 'StartTime', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->billPredictionData) { $res['BillPredictionData'] = null !== $this->billPredictionData ? $this->billPredictionData->toMap() : null; } if (null !== $this->billType) { $res['BillType'] = $this->billType; } if (null !== $this->endTime) { $res['EndTime'] = $this->endTime; } if (null !== $this->requestId) { $res['RequestId'] = $this->requestId; } if (null !== $this->startTime) { $res['StartTime'] = $this->startTime; } return $res; } /** * @param array $map * * @return DescribeLiveUserBillPredictionResponseBody */ public static function fromMap($map = []) { $model = new self(); if (isset($map['BillPredictionData'])) { $model->billPredictionData = billPredictionData::fromMap($map['BillPredictionData']); } if (isset($map['BillType'])) { $model->billType = $map['BillType']; } if (isset($map['EndTime'])) { $model->endTime = $map['EndTime']; } if (isset($map['RequestId'])) { $model->requestId = $map['RequestId']; } if (isset($map['StartTime'])) { $model->startTime = $map['StartTime']; } return $model; } }