toJson method

Map<String, dynamic> toJson()

Implementation

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