BaseStationCommand constructor

BaseStationCommand({
  1. Version? version,
  2. AntennaControlMode? mode,
  3. GpsCoordinates? roverCoordinates,
  4. GpsCoordinates? baseStationCoordinatesOverride,
  5. GpsCoordinates? roverCoordinatesOverrideOverride,
  6. AntennaFirmwareCommand? manualCommand,
})

Implementation

factory BaseStationCommand({
  $2.Version? version,
  AntennaControlMode? mode,
  $3.GpsCoordinates? roverCoordinates,
  $3.GpsCoordinates? baseStationCoordinatesOverride,
  $3.GpsCoordinates? roverCoordinatesOverrideOverride,
  AntennaFirmwareCommand? manualCommand,
}) {
  final $result = create();
  if (version != null) {
    $result.version = version;
  }
  if (mode != null) {
    $result.mode = mode;
  }
  if (roverCoordinates != null) {
    $result.roverCoordinates = roverCoordinates;
  }
  if (baseStationCoordinatesOverride != null) {
    $result.baseStationCoordinatesOverride = baseStationCoordinatesOverride;
  }
  if (roverCoordinatesOverrideOverride != null) {
    $result.roverCoordinatesOverrideOverride = roverCoordinatesOverrideOverride;
  }
  if (manualCommand != null) {
    $result.manualCommand = manualCommand;
  }
  return $result;
}