OrderItemDto class
Краткое описание
Объект OrderItemDto представляет собой структуру данных, используемую
в API точке /order/update.
Описание полей:
- productId - уникальный id товара.
- qty - количество товаров.
- price - базовая стоимость товара.
- discountLabel - hash скидки (необязательно).
- 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