TriggerOrderComment class

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

Объект TriggerOrderComment представляет собой структуру данных, используемую для хранения комментариев, связанных с заказом.

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

  1. authorId - ID автора комментария (если есть).
  2. comment - Текст комментария.
  3. createdAt - Дата и время создания комментария.
  4. externalAuthor - Имя внешнего автора, если комментарий оставлен извне.
  5. id - Уникальный идентификатор комментария.
  6. isRefuseReason - Флаг, указывающий, является ли комментарий причиной отказа.
  7. orderId - ID заказа, к которому относится комментарий.
  8. source - Источник комментария (если доступен).

Методы:

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

Constructors

TriggerOrderComment({required DateTime createdAt, required int id, required bool isRefuseReason, required int orderId, String? source, int? authorId, String? comment, String? externalAuthor})
TriggerOrderComment.fromJson(Map<String, dynamic> json)
factory

Properties

authorId → int?
final
comment → String?
final
createdAt → DateTime
final
externalAuthor → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
isRefuseReason → bool
final
orderId → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String?
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