'RegCashQRc', 'TermNo' => $this->data->TermNo, ]; if ($this->data->mediaType !== null) $body['mediaType'] = $this->data->mediaType; if ($this->data->width !== null) $body['width'] = $this->data->width; if ($this->data->height !== null) $body['height'] = $this->data->height; if ($this->data->redirectUrl !== null) $body['redirectUrl'] = $this->data->redirectUrl; if ($this->data->qrcId !== null) $body['qrcId'] = $this->data->qrcId; return $body; } public function createDtoFromResponse(Response $response): RegCashQrResponseData { return RegCashQrResponseData::from($response->json()); } }