OrderItemDto class

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

Объект OrderItemDto представляет собой структуру данных, используемую в API точке /order/update.

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

  1. productId - уникальный id товара.
  2. qty - количество товаров.
  3. price - базовая стоимость товара.
  4. discountLabel - hash скидки (необязательно).
  5. promotional - флаг скидки (необязательно).

Методы:

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

Constructors

OrderItemDto({required String productId, required int qty, required int price, String? discountLabel, bool? promotional})
OrderItemDto.fromJson(Map<String, dynamic> json)
factory

Properties

discountLabel → String?
final
hashCode → int
The hash code for this object.
no setterinherited
price → int
final
productId → String
final
promotional → bool?
final
qty → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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