src/Entities/Delivery/DeliveryAgent.php
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'user' => $this->getUser(),
            'organisation' => $this->getOrganisation(),
            'minBalance' => $this->getMinBalance(),
            'maxBalance' => $this->getMaxBalance(),
            'enabled' => $this->isEnabled(),
            'status' => $this->getStatus(),
            'accountNo' => $this->getAccountNo(),
            'cardNo' => $this->getCardNo(),
        ];
    }
public function jsonSerialize()
    {
        return [
            'id' => $this->getId(),
            'user' => $this->getUser(),
            'organisation' => $this->getOrganisation(),
            'minBalance' => $this->getMinBalance(),
            'maxBalance' => $this->getMaxBalance(),
            'enabled' => $this->isEnabled(),
            'status' => $this->getStatus(),
            'accountNo' => $this->getAccountNo(),
            'cardNo' => $this->getCardNo(),
        ];
    }
Specify data which should be serialized to JSON