$this->uuid, 'type' => $this->type, 'amount' => (float) $this->amount, 'balance_before' => (float) $this->balance_before, 'balance_after' => (float) $this->balance_after, 'source_type' => $this->source_type, 'source_id' => $this->source_id, 'metadata' => $this->metadata ?? [], 'created_at' => $this->created_at?->toIso8601String(), ]; } }