Location constructor

Location({
  1. String? id,
  2. String? name,
  3. Timestamp? createdOn,
  4. String? parentLocationId,
  5. LocationAuth? auth,
  6. Iterable<LocationOrganization>? organizations,
  7. int? robotCount,
  8. StorageConfig? config,
})

Implementation

factory Location({
  $core.String? id,
  $core.String? name,
  $44.Timestamp? createdOn,
  $core.String? parentLocationId,
  LocationAuth? auth,
  $core.Iterable<LocationOrganization>? organizations,
  $core.int? robotCount,
  StorageConfig? config,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (name != null) {
    $result.name = name;
  }
  if (createdOn != null) {
    $result.createdOn = createdOn;
  }
  if (parentLocationId != null) {
    $result.parentLocationId = parentLocationId;
  }
  if (auth != null) {
    $result.auth = auth;
  }
  if (organizations != null) {
    $result.organizations.addAll(organizations);
  }
  if (robotCount != null) {
    $result.robotCount = robotCount;
  }
  if (config != null) {
    $result.config = config;
  }
  return $result;
}