集成 获取用户设备的作业列表/删除作业列表/添加作业区域
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
class ReferencePoint {
|
||||
final double lat;
|
||||
final double lon;
|
||||
|
||||
ReferencePoint({required this.lat, required this.lon});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'lat': lat,
|
||||
'lon': lon,
|
||||
};
|
||||
}
|
||||
|
||||
class OuterBoundary {
|
||||
final List<Position> position;
|
||||
final double sideWidth;
|
||||
|
||||
OuterBoundary({required this.position, required this.sideWidth});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'position': position.map((p) => p.toJson()).toList(),
|
||||
'sideWidth': sideWidth,
|
||||
};
|
||||
}
|
||||
|
||||
class HoleBoundary {
|
||||
final List<Position> position;
|
||||
final double sideWidth;
|
||||
|
||||
HoleBoundary({required this.position, required this.sideWidth});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'position': position.map((p) => p.toJson()).toList(),
|
||||
'sideWidth': sideWidth,
|
||||
};
|
||||
}
|
||||
|
||||
class Position {
|
||||
final double lat;
|
||||
final double lon;
|
||||
|
||||
Position({required this.lat, required this.lon});
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'lat': lat,
|
||||
'lon': lon,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user