toString method

  1. @override
String toString()
override

A string representation of this object.

Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.

Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.

Implementation

@override
String toString() {
  return 'InvoiceModel(id: $id, due_date: $dueDate, currency: $currency, discount_cents: $discountCents, email: $email, items_total_cents: $itemsTotalCents, notification_url: $notificationUrl, return_url: $returnUrl, status: $status, tax_cents: $taxCents, updated_at: $updatedAt, total_cents: $totalCents, total_paid: $totalPaid, total_paid_cents: $totalPaidCents, paid_at: $paidAt, paid_cents: $paidCents, paid: $paid, secure_id: $secureId, secure_url: $secureUrl, customer_id: $customerId, user_id: $userId, total: $total, taxes_paid: $taxesPaid, interest: $interest, discount: $discount, created_at: $createdAt, refundable: $refundable, installments: $installments, bank_slip: $bankSlip, items: $items, variables: $variables, custom_variables: $customVariables, early_payment_discount: $earlyPaymentDiscount, early_payment_discounts: $earlyPaymentDiscounts, logs: $logs)';
}