PackageStatus constructor
Implementation
factory PackageStatus({
$core.String? name,
$1.PackageType? type,
PackageStatus_State? state,
$core.String? error,
$50.Timestamp? lastUpdated,
$core.String? version,
$fixnum.Int64? bytesDownloaded,
$fixnum.Int64? totalBytes,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (type != null) {
$result.type = type;
}
if (state != null) {
$result.state = state;
}
if (error != null) {
$result.error = error;
}
if (lastUpdated != null) {
$result.lastUpdated = lastUpdated;
}
if (version != null) {
$result.version = version;
}
if (bytesDownloaded != null) {
$result.bytesDownloaded = bytesDownloaded;
}
if (totalBytes != null) {
$result.totalBytes = totalBytes;
}
return $result;
}