RobotPart constructor

RobotPart({
  1. String? id,
  2. String? name,
  3. String? secret,
  4. String? robot,
  5. Struct? robotConfig,
  6. Timestamp? lastAccess,
  7. Struct? userSuppliedInfo,
  8. bool? mainPart,
  9. String? fqdn,
  10. String? dnsName,
  11. String? localFqdn,
  12. String? locationId,
  13. Timestamp? createdOn,
  14. Iterable<SharedSecret>? secrets,
  15. Timestamp? lastUpdated,
})

Implementation

factory RobotPart({
  $core.String? id,
  $core.String? name,
  $core.String? secret,
  $core.String? robot,
  $43.Struct? robotConfig,
  $44.Timestamp? lastAccess,
  $43.Struct? userSuppliedInfo,
  $core.bool? mainPart,
  $core.String? fqdn,
  $core.String? dnsName,
  $core.String? localFqdn,
  $core.String? locationId,
  $44.Timestamp? createdOn,
  $core.Iterable<SharedSecret>? secrets,
  $44.Timestamp? lastUpdated,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (secret != null) {
    $result.secret = secret;
  }
  if (robot != null) {
    $result.robot = robot;
  }
  if (robotConfig != null) {
    $result.robotConfig = robotConfig;
  }
  if (lastAccess != null) {
    $result.lastAccess = lastAccess;
  }
  if (userSuppliedInfo != null) {
    $result.userSuppliedInfo = userSuppliedInfo;
  }
  if (mainPart != null) {
    $result.mainPart = mainPart;
  }
  if (fqdn != null) {
    $result.fqdn = fqdn;
  }
  if (dnsName != null) {
    $result.dnsName = dnsName;
  }
  if (localFqdn != null) {
    $result.localFqdn = localFqdn;
  }
  if (locationId != null) {
    $result.locationId = locationId;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  if (secrets != null) {
    $result.secrets.addAll(secrets);
  }
  if (lastUpdated != null) {
    $result.lastUpdated = lastUpdated;
  }
  return $result;
}