toJson method
Implementation
Map<String, dynamic> toJson() => {
"latitude": latitude,
"longitude": longitude,
"altitude": altitude,
"speed": speed,
"heading": heading,
"accuracy": accuracy,
"timestamp": timestamp.toIso8601String(),
};