toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (bucketCounts != null) 'bucketCounts': bucketCounts!,
      if (count != null) 'count': count!,
      if (exemplars != null) 'exemplars': exemplars!,
      if (explicitBuckets != null) 'explicitBuckets': explicitBuckets!,
      if (exponentialBuckets != null)
        'exponentialBuckets': exponentialBuckets!,
      if (linearBuckets != null) 'linearBuckets': linearBuckets!,
      if (maximum != null) 'maximum': maximum!,
      if (mean != null) 'mean': mean!,
      if (minimum != null) 'minimum': minimum!,
      if (sumOfSquaredDeviation != null)
        'sumOfSquaredDeviation': sumOfSquaredDeviation!,
    };