StartMappingSessionRequest constructor

StartMappingSessionRequest({
  1. String? slamVersion,
  2. String? viamServerVersion,
  3. String? mapName,
  4. String? organizationId,
  5. String? locationId,
  6. String? robotId,
  7. CaptureInterval? captureInterval,
  8. Iterable<SensorInfo>? sensors,
  9. Struct? slamConfig,
  10. String? existingMapVersion,
  11. Module? module,
})

Implementation

factory StartMappingSessionRequest({
  $core.String? slamVersion,
  $core.String? viamServerVersion,
  $core.String? mapName,
  $core.String? organizationId,
  $core.String? locationId,
  $core.String? robotId,
  CaptureInterval? captureInterval,
  $core.Iterable<SensorInfo>? sensors,
  $43.Struct? slamConfig,
  $core.String? existingMapVersion,
  Module? module,
}) {
  final $result = create();
  if (slamVersion != null) {
    $result.slamVersion = slamVersion;
  }
  if (viamServerVersion != null) {
    $result.viamServerVersion = viamServerVersion;
  }
  if (mapName != null) {
    $result.mapName = mapName;
  }
  if (organizationId != null) {
    $result.organizationId = organizationId;
  }
  if (locationId != null) {
    $result.locationId = locationId;
  }
  if (robotId != null) {
    $result.robotId = robotId;
  }
  if (captureInterval != null) {
    $result.captureInterval = captureInterval;
  }
  if (sensors != null) {
    $result.sensors.addAll(sensors);
  }
  if (slamConfig != null) {
    $result.slamConfig = slamConfig;
  }
  if (existingMapVersion != null) {
    $result.existingMapVersion = existingMapVersion;
  }
  if (module != null) {
    $result.module = module;
  }
  return $result;
}