Location constructor
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;
}