toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"latitude": latitude,
"longitude": longitude,
"altitude": altitude,
"speed": speed,
"accuracy": accuracy,
"timestamp": timestamp,
"bearing": bearing,
"speedometer": speedometer,
"isMock": isMock,
"battery": battery
};
}