mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
made GetDeviceLocationDataParam.toJson
method have the correct keys for the API.
This commit is contained in:
@ -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};
|
||||
}
|
||||
|
Reference in New Issue
Block a user