$this->id, 'student_contract_id' => $this->student_contract_id, 'student_id' => $this->student_id, 'student_name' => $this->student?->name, 'type' => $this->type, 'history' => $this->history, 'installment_number' => $this->installment_number, 'total_installments' => $this->total_installments, 'order' => $this->order, 'value' => (float) $this->value, 'paid_value' => (float) $this->paid_value, 'discount' => (float) $this->discount, 'fine' => (float) $this->fine, 'due_date' => $this->due_date?->format('Y-m-d'), 'payment_date' => $this->payment_date?->format('Y-m-d'), 'status' => $this->status, 'asaas_id' => $this->asaas_id, ]; } }