ResourceSpans constructor

ResourceSpans({
  1. Resource? resource,
  2. Iterable<ScopeSpans>? scopeSpans,
  3. String? schemaUrl,
})

Implementation

factory ResourceSpans({
  $0.Resource? resource,
  $core.Iterable<ScopeSpans>? scopeSpans,
  $core.String? schemaUrl,
}) {
  final result = create();
  if (resource != null) result.resource = resource;
  if (scopeSpans != null) result.scopeSpans.addAll(scopeSpans);
  if (schemaUrl != null) result.schemaUrl = schemaUrl;
  return result;
}