Item class final
LineItem
A line item.
- Implemented types
Constructors
-
Item({required int amountDiscount, required int amountSubtotal, required int amountTax, required int amountTotal, required String currency, required String description, List<
LineItemsDiscountAmount> ? discounts, required String id, InvoiceitemPrice? price, int? quantity, List<LineItemsTaxAmount> ? taxes}) -
LineItem
const
- Item.fromJson(Object? json)
-
factory
Properties
- amountDiscount → int
-
final
- amountSubtotal → int
-
final
- amountTax → int
-
final
- amountTotal → int
-
final
- currency → String
-
final
- description → String
-
final
-
discounts
→ List<
LineItemsDiscountAmount> ? -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- object → String
-
The resource's type.
final
- price → InvoiceitemPrice?
-
final
- quantity → int?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
taxes
→ List<
LineItemsTaxAmount> ? -
final
Methods
-
encodeWith<
V> (Encoder< V> encoder) → V -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited