Scanner constructor

Scanner({
  1. RowVersion? rowVersion,
  2. ScannerId? id,
  3. StringValue? displayName,
  4. StringValue? version,
  5. StringValue? host,
  6. Int32Value? port,
  7. Address? physicalLocation,
  8. ScannerSettings? settings,
})

Implementation

factory Scanner({
  $2.RowVersion? rowVersion,
  $0.ScannerId? id,
  $1.StringValue? displayName,
  $1.StringValue? version,
  $1.StringValue? host,
  $1.Int32Value? port,
  $6.Address? physicalLocation,
  ScannerSettings? settings,
}) {
  final result = create();
  if (rowVersion != null) result.rowVersion = rowVersion;
  if (id != null) result.id = id;
  if (displayName != null) result.displayName = displayName;
  if (version != null) result.version = version;
  if (host != null) result.host = host;
  if (port != null) result.port = port;
  if (physicalLocation != null) result.physicalLocation = physicalLocation;
  if (settings != null) result.settings = settings;
  return result;
}