UrpMessageHeader constructor

UrpMessageHeader({
  1. int? seqNr,
  2. int? nonce,
  3. String? error,
  4. UrpDeviceIdentifier? target,
  5. UrpDeviceIdentifier? origin,
})

Implementation

factory UrpMessageHeader({
  $core.int? seqNr,
  $core.int? nonce,
  $core.String? error,
  UrpDeviceIdentifier? target,
  UrpDeviceIdentifier? origin,
}) {
  final $result = create();
  if (seqNr != null) {
    $result.seqNr = seqNr;
  }
  if (nonce != null) {
    $result.nonce = nonce;
  }
  if (error != null) {
    $result.error = error;
  }
  if (target != null) {
    $result.target = target;
  }
  if (origin != null) {
    $result.origin = origin;
  }
  return $result;
}