OrderItemCreateDto class
Краткое описание
Объект OrderItemCreateDto представляет собой структуру данных, используемую
в API точках /order/add и /order/addList.
Описание полей:
- productId - уникальный id товара.
- qty - количество товаров.
- totalPrice - общая цена для определенного количества товара с учётом скидок Umbrella.
Методы:
- fromJson - Создает экземпляр
OrderItemCreateDtoиз JSON-объекта. - toJson - Преобразует экземпляр
OrderItemCreateDtoв JSON-объект.
- Annotations
-
- @JsonSerializable()
Constructors
- OrderItemCreateDto({required String productId, required int qty, required int price, required int totalPrice})
-
OrderItemCreateDto.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited