RobotDeployment.fromJson constructor

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

Implementation

factory RobotDeployment.fromJson(Map<String, dynamic> json) {
  return RobotDeployment(
    arn: json['arn'] as String?,
    deploymentFinishTime: timeStampFromJson(json['deploymentFinishTime']),
    deploymentStartTime: timeStampFromJson(json['deploymentStartTime']),
    failureCode: (json['failureCode'] as String?)?.toDeploymentJobErrorCode(),
    failureReason: json['failureReason'] as String?,
    progressDetail: json['progressDetail'] != null
        ? ProgressDetail.fromJson(
            json['progressDetail'] as Map<String, dynamic>)
        : null,
    status: (json['status'] as String?)?.toRobotStatus(),
  );
}