UrpImpMeasurement constructor

UrpImpMeasurement({
  1. String? signature,
  2. String? readerId,
  3. String? payload,
  4. int? nonce,
  5. Iterable<UrpImpMeasurementResult>? result,
})

Implementation

factory UrpImpMeasurement({
  $core.String? signature,
  $core.String? readerId,
  $core.String? payload,
  $core.int? nonce,
  $core.Iterable<UrpImpMeasurementResult>? result,
}) {
  final $result = create();
  if (signature != null) {
    $result.signature = signature;
  }
  if (readerId != null) {
    $result.readerId = readerId;
  }
  if (payload != null) {
    $result.payload = payload;
  }
  if (nonce != null) {
    $result.nonce = nonce;
  }
  if (result != null) {
    $result.result.addAll(result);
  }
  return $result;
}