made GetDeviceLocationDataParam.toJson method have the correct keys for the API.

This commit is contained in:
Faris Armoush
2025-06-04 09:27:46 +03:00
parent e48fc8b82c
commit 25a55ad820

View File

@ -7,10 +7,5 @@ class GetDeviceLocationDataParam {
final double latitude;
final double longitude;
Map<String, dynamic> toJson() {
return {
'latitude': latitude,
'longitude': longitude,
};
}
Map<String, dynamic> toJson() => {'lat': latitude, 'lon': longitude};
}