AddressDto class

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

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

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

  1. country - страна клиента.
  2. state - штат клиента.
  3. city - город клиента.
  4. district - название района.
  5. addressLine - адрес клиента.
  6. longitude - долгота.
  7. latitude - широта.
  8. li>comments - комментарий к заказу.

Методы:

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

Constructors

AddressDto({String? country, String? state, String? city, String? district, String? addressLine, double? longitude, double? latitude, String? comments})
AddressDto.fromJson(Map<String, dynamic> json)
factory

Properties

addressLine → String?
final
city → String?
final
comments → String?
final
country → String?
final
district → String?
final
hashCode → int
The hash code for this object.
no setterinherited
latitude → double?
final
longitude → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → 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