OrderItemCreateDto class

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

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

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

  1. productId - уникальный id товара.
  2. qty - количество товаров.
  3. 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