Implementation
factory ArmData({
Coordinates? currentPosition,
Coordinates? targetPosition,
MotorData? base,
MotorData? shoulder,
MotorData? elbow,
$0.Version? version,
}) {
final $result = create();
if (currentPosition != null) {
$result.currentPosition = currentPosition;
}
if (targetPosition != null) {
$result.targetPosition = targetPosition;
}
if (base != null) {
$result.base = base;
}
if (shoulder != null) {
$result.shoulder = shoulder;
}
if (elbow != null) {
$result.elbow = elbow;
}
if (version != null) {
$result.version = version;
}
return $result;
}