Driver class

Driver model for Traccar API

Constructors

Driver({int? id, required String name, String? uniqueId, Map<String, dynamic> attributes = const {}})
Driver.fromJson(Map<String, dynamic> json)
factory

Properties

attributes → Map<String, dynamic>
final
category → String?
no setter
email → String?
no setter
hashCode → int
The hash code for this object.
no setteroverride
id → int?
final
licenseExpiry → String?
no setter
licenseNumber → String?
no setter
name → String
final
notes → String?
no setter
phone → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uniqueId → String?
final

Methods

copyWith({int? id, String? name, String? uniqueId, Map<String, dynamic>? attributes}) → Driver
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
withCategory(String? category) → Driver
withEmail(String? email) → Driver
withLicenseExpiry(String? licenseExpiry) → Driver
withLicenseNumber(String? licenseNumber) → Driver
withNotes(String? notes) → Driver
withPhone(String? phone) → Driver

Operators

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