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!.toJson(),
      if (floatingPoint != null) 'floatingPoint': floatingPoint!,
      if (floatingPointList != null)
        'floatingPointList': floatingPointList!.toJson(),
      if (floatingPointMean != null)
        'floatingPointMean': floatingPointMean!.toJson(),
      if (integer != null) 'integer': integer!.toJson(),
      if (integerGauge != null) 'integerGauge': integerGauge!.toJson(),
      if (integerList != null) 'integerList': integerList!.toJson(),
      if (integerMean != null) 'integerMean': integerMean!.toJson(),
      if (internal != null) 'internal': internal!,
      if (nameAndKind != null) 'nameAndKind': nameAndKind!.toJson(),
      if (shortId != null) 'shortId': shortId!,
      if (stringList != null) 'stringList': stringList!.toJson(),
      if (structuredNameAndMetadata != null)
        'structuredNameAndMetadata': structuredNameAndMetadata!.toJson(),
    };