OrderPositionUmbrella class

Краткое описание

Объект OrderPositionUmbrella описывает позицию заказа из Umbrella.

Описание полей:

  1. productId - уникальный id товара.
  2. qty - количество товаров.
  3. totalPrice - общая цена для определенного количества товара с учётом скидок Umbrella (опционально).
  4. price - цена товара (опционально).

Методы:

  • fromJson - Создает экземпляр OrderItemCreateDto из JSON-объекта.
  • toJson - Преобразует экземпляр OrderItemCreateDto в JSON-объект.
Mixed-in types
Annotations
  • @JsonSerializable()

Constructors

OrderPositionUmbrella({required String productId, required int qty, int? price, int? totalPrice})
OrderPositionUmbrella.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
onConflict OnConflict?
getter/setter pairinherited
price → int?
final
productId → String
final
qty → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalPrice → int?
final

Methods

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

Operators

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