路及规划-集成(打点绘制)后端接口
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class DeviceAddPathPointModel {
|
||||
final double latitude;
|
||||
final double longitude;
|
||||
|
||||
DeviceAddPathPointModel({required this.latitude, required this.longitude});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'latitude': latitude,
|
||||
'longitude': longitude,
|
||||
};
|
||||
|
||||
factory DeviceAddPathPointModel.fromJson(Map<String, dynamic> json) => DeviceAddPathPointModel(
|
||||
latitude: json['latitude'],
|
||||
longitude: json['longitude'],
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user