'BundleId', 'durationSeconds' => 'DurationSeconds', 'ownerId' => 'OwnerId', 'packageName' => 'PackageName', 'packageSign' => 'PackageSign', 'platform' => 'Platform', 'resourceOwnerAccount' => 'ResourceOwnerAccount', 'resourceOwnerId' => 'ResourceOwnerId', 'schemeCode' => 'SchemeCode', ]; public function validate() { } public function toMap() { $res = []; if (null !== $this->bundleId) { $res['BundleId'] = $this->bundleId; } if (null !== $this->durationSeconds) { $res['DurationSeconds'] = $this->durationSeconds; } if (null !== $this->ownerId) { $res['OwnerId'] = $this->ownerId; } if (null !== $this->packageName) { $res['PackageName'] = $this->packageName; } if (null !== $this->packageSign) { $res['PackageSign'] = $this->packageSign; } if (null !== $this->platform) { $res['Platform'] = $this->platform; } if (null !== $this->resourceOwnerAccount) { $res['ResourceOwnerAccount'] = $this->resourceOwnerAccount; } if (null !== $this->resourceOwnerId) { $res['ResourceOwnerId'] = $this->resourceOwnerId; } if (null !== $this->schemeCode) { $res['SchemeCode'] = $this->schemeCode; } return $res; } /** * @param array $map * * @return GetFusionAuthTokenRequest */ public static function fromMap($map = []) { $model = new self(); if (isset($map['BundleId'])) { $model->bundleId = $map['BundleId']; } if (isset($map['DurationSeconds'])) { $model->durationSeconds = $map['DurationSeconds']; } if (isset($map['OwnerId'])) { $model->ownerId = $map['OwnerId']; } if (isset($map['PackageName'])) { $model->packageName = $map['PackageName']; } if (isset($map['PackageSign'])) { $model->packageSign = $map['PackageSign']; } if (isset($map['Platform'])) { $model->platform = $map['Platform']; } if (isset($map['ResourceOwnerAccount'])) { $model->resourceOwnerAccount = $map['ResourceOwnerAccount']; } if (isset($map['ResourceOwnerId'])) { $model->resourceOwnerId = $map['ResourceOwnerId']; } if (isset($map['SchemeCode'])) { $model->schemeCode = $map['SchemeCode']; } return $model; } }