ClientDto class
Краткое описание
Объект ClientDto представляет собой структуру данных, используемую
в API точках: /order/add, /order/addList и /order/update.
Описание полей:
- phone - телефон клиента.
- fullName - полное имя клиента.
- addressId - id района (необязательно).
- address2 - полный адрес клиента (необязательно).
- 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