ItemDto class

Detailed description of a line item.

Inheritance

Constructors

ItemDto({String? number, required double quantity, required QuantityMeasure quantityMeasure, required double pricePerUnit, String? gtin, String? serialNumber, String? plu, double? pricePerUnitBeforeDiscounts, WarrantyDto? warranty})
ItemDto.fromJson(Map<String, dynamic> json)
factory

Properties

gtin String?
Gtin (ean) of the product sold.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
number String?
Item number of the item / product sold or the service provided.
read / write
plu String?
Price lookup code of the item / product oder service sold.
read / write
pricePerUnit double
Gross price of the item / product or provided service per unit. PricePerUnit * Quantity = SUM(VatAmounts[].InclVat) A precision of 5 decimal places is used.
read / write
pricePerUnitBeforeDiscounts double?
Original gross price of the item / product or provided service per unit before discounts were applied. PricePerUnit * Quantity = SUM(VatAmounts[].InclVat) A precision of 5 decimal places is used.
read / write
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
read-onlyoverride
quantity double
Quantity of the item / product sold or provided service. A precision of 3 decimal places is used.
read / write
quantityMeasure QuantityMeasure
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
serialNumber String?
The serial number of the product sold.
read / write
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
read-onlyinherited
warranty WarrantyDto?
read / write

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited