in src/Transform/ObjectBasic.php [1580:1607]
public static function toProcessObject(OperationOutput $output): Models\ProcessObjectResult
{
$result = new Models\ProcessObjectResult();
$customDeserializer = [
static function (Models\ProcessObjectResult $result, OperationOutput $output) {
$body = $output->getBody() != null ? $output->getBody()->getContents() : '';
if (strlen($body) > 0) {
$processResult = json_decode($body, true);
if (is_array($processResult)) {
if (array_key_exists('bucket', $processResult)) {
$result->bucket = $processResult['bucket'];
}
if (array_key_exists('fileSize', $processResult)) {
$result->fileSize = (int)$processResult['fileSize'];
}
if (array_key_exists('object', $processResult)) {
$result->key = $processResult['object'];
}
if (array_key_exists('status', $processResult)) {
$result->processStatus = $processResult['status'];
}
}
}
},
];
Deserializer::deserializeOutput($result, $output, $customDeserializer);
return $result;
}