ClientDto class

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

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

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

  1. phone - телефон клиента.
  2. fullName - полное имя клиента.
  3. addressId - id района (необязательно).
  4. address2 - полный адрес клиента (необязательно).
  5. address - подробный адрес клиента, описанный в AddressDto.

Методы:

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

Constructors

ClientDto({required String phone, required String fullName, String? addressId, String? address2, required AddressDto address})
ClientDto.fromJson(Map<String, dynamic> json)
factory

Properties

address AddressDto
final
address2 → String?
final
addressId → String?
final
fullName → String
final
hashCode → int
The hash code for this object.
no setterinherited
phone → String
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