mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-17 02:25: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 latitude;
|
||||||
final double longitude;
|
final double longitude;
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() => {'lat': latitude, 'lon': longitude};
|
||||||
return {
|
|
||||||
'latitude': latitude,
|
|
||||||
'longitude': longitude,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user