$this->categories, 'overallTotal' => $this->overallTotal?->toLivewire(), 'fields' => $this->fields, ]; } public static function fromLivewire($value): static { return new static( $value['categories'], isset($value['overallTotal']) ? AccountBalanceDTO::fromLivewire($value['overallTotal']) : null, $value['fields'] ?? [], ); } }