code: public function toArray()
      {
          return [
              'adapterName' => $this->adapterName,
              'objectType' => $this->objectType,
              'commandType' => $this->commandType,
              'priority' => $this->priority,
              'payload' => $this->payload,
          ];
      }
docs: {@inheritdoc}