InvoiceLine class

Constructors

InvoiceLine({int? amount, String? description, int? quantity, int? unitPrice})
Returns a new InvoiceLine instance.

Properties

amount ↔ int?
Amount is the line total in whole cents (250000 is $2,500.00).
getter/setter pair
description ↔ String?
Description is the human-readable line, e.g. "Advisory retainer — August".
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
quantity ↔ int?
Quantity is the number of units, when the line is metered. Optional.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
unitPrice ↔ int?
UnitPrice is the per-unit price in cents, when the line is metered. Optional.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → InvoiceLine?
Returns a new InvoiceLine instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<InvoiceLine>
mapFromJson(dynamic json) → Map<String, InvoiceLine>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<InvoiceLine>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.