DataPackage constructor
DataPackage({})
Implementation
factory DataPackage({
$core.String? id,
$core.String? channel,
$core.String? sourceModule,
$core.String? targetModule,
$core.String? sourceHost,
$core.String? targetHost,
$core.String? sourceUserToken,
$core.String? targetUserToken,
$core.String? deviceId,
$core.Iterable<TracePoint>? tracePoints,
$fixnum.Int64? unixTimestampMs,
Blob? payload,
ControlPackage? controlVal,
}) {
final $result = create();
if (id != null) {
$result.id = id;
}
if (channel != null) {
$result.channel = channel;
}
if (sourceModule != null) {
$result.sourceModule = sourceModule;
}
if (targetModule != null) {
$result.targetModule = targetModule;
}
if (sourceHost != null) {
$result.sourceHost = sourceHost;
}
if (targetHost != null) {
$result.targetHost = targetHost;
}
if (sourceUserToken != null) {
$result.sourceUserToken = sourceUserToken;
}
if (targetUserToken != null) {
$result.targetUserToken = targetUserToken;
}
if (deviceId != null) {
$result.deviceId = deviceId;
}
if (tracePoints != null) {
$result.tracePoints.addAll(tracePoints);
}
if (unixTimestampMs != null) {
$result.unixTimestampMs = unixTimestampMs;
}
if (payload != null) {
$result.payload = payload;
}
if (controlVal != null) {
$result.controlVal = controlVal;
}
return $result;
}