toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountId != null) 'accountId': accountId!,
      if (created != null) 'created': created!.toUtc().toIso8601String(),
      if (description != null) 'description': description!,
      if (editableInGaUi != null) 'editableInGaUi': editableInGaUi!,
      if (endTime != null) 'endTime': endTime!.toUtc().toIso8601String(),
      if (equalWeighting != null) 'equalWeighting': equalWeighting!,
      if (id != null) 'id': id!,
      if (internalWebPropertyId != null)
        'internalWebPropertyId': internalWebPropertyId!,
      if (kind != null) 'kind': kind!,
      if (minimumExperimentLengthInDays != null)
        'minimumExperimentLengthInDays': minimumExperimentLengthInDays!,
      if (name != null) 'name': name!,
      if (objectiveMetric != null) 'objectiveMetric': objectiveMetric!,
      if (optimizationType != null) 'optimizationType': optimizationType!,
      if (parentLink != null) 'parentLink': parentLink!,
      if (profileId != null) 'profileId': profileId!,
      if (reasonExperimentEnded != null)
        'reasonExperimentEnded': reasonExperimentEnded!,
      if (rewriteVariationUrlsAsOriginal != null)
        'rewriteVariationUrlsAsOriginal': rewriteVariationUrlsAsOriginal!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (servingFramework != null) 'servingFramework': servingFramework!,
      if (snippet != null) 'snippet': snippet!,
      if (startTime != null)
        'startTime': startTime!.toUtc().toIso8601String(),
      if (status != null) 'status': status!,
      if (trafficCoverage != null) 'trafficCoverage': trafficCoverage!,
      if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
      if (variations != null) 'variations': variations!,
      if (webPropertyId != null) 'webPropertyId': webPropertyId!,
      if (winnerConfidenceLevel != null)
        'winnerConfidenceLevel': winnerConfidenceLevel!,
      if (winnerFound != null) 'winnerFound': winnerFound!,
    };