OrderDeferDto class

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

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

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

  1. orderId – Уникальный идентификатор заказа из базы данных.
  2. driverRefuseReasonId – Причина отказа водителя.
  3. plannedDateDuration – Временное окно в которое доставят заказ.
  4. rescheduledPlannedDate – Новая запланированная дата доставки заказа.
  5. lat – Широта.
  6. lng – Долгота.
  7. isRecalled – Флаг, указывающий, отменён ли заказ.

Методы:

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

Constructors

OrderDeferDto({required int orderId, required int driverRefuseReasonId, required int plannedDateDuration, DateTime? rescheduledPlannedDate, required double lat, required double lng, bool? isRecalled})
OrderDeferDto.fromJson(Map<String, dynamic> json)
factory

Properties

driverRefuseReasonId → int
final
hashCode → int
The hash code for this object.
no setterinherited
isRecalled → bool?
final
lat → double
final
lng → double
final
orderId → int
final
plannedDateDuration → int
final
rescheduledPlannedDate → DateTime?
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