DataPackage constructor

DataPackage({
  1. String? id,
  2. String? channel,
  3. String? sourceModule,
  4. String? targetModule,
  5. String? sourceHost,
  6. String? targetHost,
  7. String? sourceUserToken,
  8. String? targetUserToken,
  9. String? deviceId,
  10. Iterable<TracePoint>? tracePoints,
  11. Int64? unixTimestampMs,
  12. Blob? payload,
  13. ControlPackage? controlVal,
})

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