PackageInfo constructor
Implementation
factory PackageInfo({
$core.String? organizationId,
$core.String? name,
$core.String? version,
PackageType? type,
$core.Iterable<FileInfo>? files,
$43.Struct? metadata,
$core.String? platform,
}) {
final $result = create();
if (organizationId != null) {
$result.organizationId = organizationId;
}
if (name != null) {
$result.name = name;
}
if (version != null) {
$result.version = version;
}
if (type != null) {
$result.type = type;
}
if (files != null) {
$result.files.addAll(files);
}
if (metadata != null) {
$result.metadata = metadata;
}
if (platform != null) {
$result.platform = platform;
}
return $result;
}