Implementation
factory ArmData({
Coordinates? currentPosition,
Coordinates? targetPosition,
$1.MotorData? base,
$1.MotorData? shoulder,
$1.MotorData? elbow,
$2.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;
}