From 25a55ad82033ff6c1787bfe4c83c88478a1213b4 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Wed, 4 Jun 2025 09:27:46 +0300 Subject: [PATCH] made `GetDeviceLocationDataParam.toJson` method have the correct keys for the API. --- .../analytics/params/get_device_location_data_param.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/pages/analytics/params/get_device_location_data_param.dart b/lib/pages/analytics/params/get_device_location_data_param.dart index c66af4d8..29427d10 100644 --- a/lib/pages/analytics/params/get_device_location_data_param.dart +++ b/lib/pages/analytics/params/get_device_location_data_param.dart @@ -7,10 +7,5 @@ class GetDeviceLocationDataParam { final double latitude; final double longitude; - Map toJson() { - return { - 'latitude': latitude, - 'longitude': longitude, - }; - } + Map toJson() => {'lat': latitude, 'lon': longitude}; }