amount, 'split.amount'); self::requireFilled($this->recipientId, 'split.recipient_id'); self::requireFilled($this->type, 'split.type'); } public function toArray(): array { return $this->filterFilledRecursive([ 'amount' => $this->amount, 'recipient_id' => $this->recipientId, 'type' => $this->type, 'options' => $this->options, ]); } }