Exemplar constructor

Exemplar({
  1. Int64? timeUnixNano,
  2. double? asDouble,
  3. List<int>? spanId,
  4. List<int>? traceId,
  5. Int64? asInt,
  6. Iterable<KeyValue>? filteredAttributes,
})

Implementation

factory Exemplar({
  $fixnum.Int64? timeUnixNano,
  $core.double? asDouble,
  $core.List<$core.int>? spanId,
  $core.List<$core.int>? traceId,
  $fixnum.Int64? asInt,
  $core.Iterable<$1.KeyValue>? filteredAttributes,
}) {
  final result = create();
  if (timeUnixNano != null) result.timeUnixNano = timeUnixNano;
  if (asDouble != null) result.asDouble = asDouble;
  if (spanId != null) result.spanId = spanId;
  if (traceId != null) result.traceId = traceId;
  if (asInt != null) result.asInt = asInt;
  if (filteredAttributes != null)
    result.filteredAttributes.addAll(filteredAttributes);
  return result;
}