toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (metadata != null) 'metadata': metadata!,
if (metric != null) 'metric': metric!,
if (metricKind != null) 'metricKind': metricKind!,
if (points != null) 'points': points!,
if (resource != null) 'resource': resource!,
if (unit != null) 'unit': unit!,
if (valueType != null) 'valueType': valueType!,
};