ResourceSpans constructor
ResourceSpans({
- Resource? resource,
- Iterable<
ScopeSpans> ? scopeSpans, - 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;
}