LineItem class

Constructors

LineItem({required String id, String? categoryId, String? name, String? description, required int quantity, String? gtin, String? imageUrl, String? brand, String? externalItemId, required ItemAmount itemAmount})
LineItem.fromJson(String source)
factory
LineItem.fromMap(Map<String, dynamic> map)
factory

Properties

brand String?
final
categoryId String?
final
description String?
final
externalItemId String?
final
gtin String?
final
hashCode int
The hash code for this object.
no setteroverride
id String
final
imageUrl String?
final
itemAmount ItemAmount
final
name String?
final
quantity int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? id, String? categoryId, String? name, String? description, int? quantity, String? gtin, String? imageUrl, String? brand, String? externalItemId, ItemAmount? itemAmount}) LineItem
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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