对接路径规划的列表(根据场站的下的)
优化无人机机场的监控视频的显示视频流畅度提升80% 添加首页tcp指示灯的机器状态信息展示功能。(暂不支持在此页面上设备的切换显示)
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
class FlightTaskEntity {
|
||||
final String name;
|
||||
final String uuid;
|
||||
final String taskType;
|
||||
final String status;
|
||||
final String sn;
|
||||
final String landingDockSn;
|
||||
final String beginAt;
|
||||
final String endAt;
|
||||
final String runAt;
|
||||
final String completedAt;
|
||||
final String waylineUuid;
|
||||
final int folderId;
|
||||
final int currentWaypointIndex;
|
||||
final int totalWaypoints;
|
||||
final String mediaUploadStatus;
|
||||
final String resumableStatus;
|
||||
final bool isBreakPointResume;
|
||||
final dynamic operations;
|
||||
final dynamic exceptions;
|
||||
|
||||
FlightTaskEntity({
|
||||
required this.name,
|
||||
required this.uuid,
|
||||
required this.taskType,
|
||||
required this.status,
|
||||
required this.sn,
|
||||
required this.landingDockSn,
|
||||
required this.beginAt,
|
||||
required this.endAt,
|
||||
required this.runAt,
|
||||
required this.completedAt,
|
||||
required this.waylineUuid,
|
||||
required this.folderId,
|
||||
required this.currentWaypointIndex,
|
||||
required this.totalWaypoints,
|
||||
required this.mediaUploadStatus,
|
||||
required this.resumableStatus,
|
||||
required this.isBreakPointResume,
|
||||
this.operations,
|
||||
this.exceptions,
|
||||
});
|
||||
|
||||
factory FlightTaskEntity.fromJson(Map<String, dynamic> json) {
|
||||
return FlightTaskEntity(
|
||||
name: json['name'] ?? '',
|
||||
uuid: json['uuid'] ?? '',
|
||||
taskType: json['task_type'] ?? '',
|
||||
status: json['status'] ?? '',
|
||||
sn: json['sn'] ?? '',
|
||||
landingDockSn: json['landing_dock_sn'] ?? '',
|
||||
beginAt: json['begin_at'] ?? '',
|
||||
endAt: json['end_at'] ?? '',
|
||||
runAt: json['run_at'] ?? '',
|
||||
completedAt: json['completed_at'] ?? '',
|
||||
waylineUuid: json['wayline_uuid'] ?? '',
|
||||
folderId: json['folder_id'] ?? 0,
|
||||
currentWaypointIndex: json['current_waypoint_index'] ?? 0,
|
||||
totalWaypoints: json['total_waypoints'] ?? 0,
|
||||
mediaUploadStatus: json['media_upload_status'] ?? '',
|
||||
resumableStatus: json['resumable_status'] ?? '',
|
||||
isBreakPointResume: json['is_break_point_resume'] ?? false,
|
||||
operations: json['operations'],
|
||||
exceptions: json['exceptions'],
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
return {
|
||||
'name': name,
|
||||
'uuid': uuid,
|
||||
'task_type': taskType,
|
||||
'status': status,
|
||||
'sn': sn,
|
||||
'landing_dock_sn': landingDockSn,
|
||||
'begin_at': beginAt,
|
||||
'end_at': endAt,
|
||||
'run_at': runAt,
|
||||
'completed_at': completedAt,
|
||||
'wayline_uuid': waylineUuid,
|
||||
'folder_id': folderId,
|
||||
'current_waypoint_index': currentWaypointIndex,
|
||||
'total_waypoints': totalWaypoints,
|
||||
'media_upload_status': mediaUploadStatus,
|
||||
'resumable_status': resumableStatus,
|
||||
'is_break_point_resume': isBreakPointResume,
|
||||
'operations': operations,
|
||||
'exceptions': exceptions,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user