OrderPositionUmbrella class
Краткое описание
Объект OrderPositionUmbrella описывает позицию заказа из Umbrella.
Описание полей:
- productId - уникальный id товара.
- qty - количество товаров.
- totalPrice - общая цена для определенного количества товара с учётом скидок Umbrella (опционально).
- 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