ProgressDetail.fromJson constructor

ProgressDetail.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ProgressDetail.fromJson(Map<String, dynamic> json) {
  return ProgressDetail(
    currentProgress:
        (json['currentProgress'] as String?)?.toRobotDeploymentStep(),
    estimatedTimeRemainingSeconds:
        json['estimatedTimeRemainingSeconds'] as int?,
    percentDone: json['percentDone'] as double?,
    targetResource: json['targetResource'] as String?,
  );
}