TrackPoint class

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

TrackPoint представляет собой объект трекинга местоположения водителя, который используется в TrackingController.

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

  1. id - уникальный идентификатор точки трекинга (опционально).
  2. lat - широта координаты.
  3. lng - долгота координаты.
  4. time - время фиксации местоположения.
  5. batteryLevel - уровень заряда батареи устройства (опционально).

Методы:

  • fromJson - Создает объект TrackPoint из JSON.
  • toJson - Преобразует объект TrackPoint в JSON.
Mixed-in types
Annotations
  • @JsonSerializable()

Constructors

TrackPoint({int? id, String? batteryLevel, required double lat, required double lng, required DateTime time})
TrackPoint.fromJson(Map<String, dynamic> json)
factory

Properties

batteryLevel → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → int?
final
lat → double
final
lng → double
final
onConflict OnConflict?
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
time → DateTime
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGQLJson({bool includeIfNull = false}) → Map<String, dynamic>
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited