Item class

Constructors

Item.new({required String name, required double price, required double quantity, required double sum, required String measurementUnit, required String paymentMethod, required String paymentObject, required Vat vat})
Item.fromJson(Map<String, dynamic> json)
factory
Item.fromRawJson(String str)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
measurementUnit String
final
name String
final
paymentMethod String
final
paymentObject String
final
price double
final
quantity double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sum double
final
vat Vat
final

Methods

copyWith({String? name, double? price, double? quantity, double? sum, String? measurementUnit, String? paymentMethod, String? paymentObject, Vat? vat}) Item
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toRawJson() String
toString() String
A string representation of this object.
inherited

Operators

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