DeviceAccumulators class

DeviceAccumulators model for Traccar API Based on official Traccar API specification

Constructors

DeviceAccumulators.new({required int deviceId, required double totalDistance, required double hours})
const
DeviceAccumulators.fromJson(Map<String, dynamic> json)
factory

Properties

deviceId int
final
hashCode int
The hash code for this object.
no setteroverride
hours double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalDistance double
final
totalDistanceKm double
Get total distance in kilometers
no setter
totalDistanceMiles double
Get total distance in miles
no setter

Methods

copyWith({int? deviceId, double? totalDistance, double? hours}) DeviceAccumulators
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.
override

Operators

operator ==(Object other) bool
The equality operator.
override