toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (boolean != null) 'boolean': boolean!,
      if (cumulative != null) 'cumulative': cumulative!,
      if (distribution != null) 'distribution': distribution!,
      if (floatingPoint != null) 'floatingPoint': floatingPoint!,
      if (floatingPointList != null) 'floatingPointList': floatingPointList!,
      if (floatingPointMean != null) 'floatingPointMean': floatingPointMean!,
      if (integer != null) 'integer': integer!,
      if (integerGauge != null) 'integerGauge': integerGauge!,
      if (integerList != null) 'integerList': integerList!,
      if (integerMean != null) 'integerMean': integerMean!,
      if (internal != null) 'internal': internal!,
      if (nameAndKind != null) 'nameAndKind': nameAndKind!,
      if (shortId != null) 'shortId': shortId!,
      if (stringList != null) 'stringList': stringList!,
      if (structuredNameAndMetadata != null)
        'structuredNameAndMetadata': structuredNameAndMetadata!,
    };