MoveOnGlobeRequest constructor

MoveOnGlobeRequest({
  1. String? name,
  2. GeoPoint? destination,
  3. double? heading,
  4. ResourceName? componentName,
  5. ResourceName? movementSensorName,
  6. Iterable<GeoGeometry>? obstacles,
  7. MotionConfiguration? motionConfiguration,
  8. Iterable<GeoGeometry>? boundingRegions,
  9. Struct? extra,
})

Implementation

factory MoveOnGlobeRequest({
  $core.String? name,
  $14.GeoPoint? destination,
  $core.double? heading,
  $14.ResourceName? componentName,
  $14.ResourceName? movementSensorName,
  $core.Iterable<$14.GeoGeometry>? obstacles,
  MotionConfiguration? motionConfiguration,
  $core.Iterable<$14.GeoGeometry>? boundingRegions,
  $43.Struct? extra,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (destination != null) {
    $result.destination = destination;
  }
  if (heading != null) {
    $result.heading = heading;
  }
  if (componentName != null) {
    $result.componentName = componentName;
  }
  if (movementSensorName != null) {
    $result.movementSensorName = movementSensorName;
  }
  if (obstacles != null) {
    $result.obstacles.addAll(obstacles);
  }
  if (motionConfiguration != null) {
    $result.motionConfiguration = motionConfiguration;
  }
  if (boundingRegions != null) {
    $result.boundingRegions.addAll(boundingRegions);
  }
  if (extra != null) {
    $result.extra = extra;
  }
  return $result;
}