toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (createTime != null) 'createTime': createTime!,
      if (definition != null) 'definition': definition!,
      if (description != null) 'description': description!,
      if (displayName != null) 'displayName': displayName!,
      if (endTime != null) 'endTime': endTime!,
      if (experimentLength != null) 'experimentLength': experimentLength!,
      if (lastUpdateTime != null) 'lastUpdateTime': lastUpdateTime!,
      if (name != null) 'name': name!,
      if (result != null) 'result': result!,
      if (rolloutConfig != null) 'rolloutConfig': rolloutConfig!,
      if (rolloutFailureReason != null)
        'rolloutFailureReason': rolloutFailureReason!,
      if (rolloutState != null) 'rolloutState': rolloutState!,
      if (startTime != null) 'startTime': startTime!,
      if (state != null) 'state': state!,
      if (variantsHistory != null) 'variantsHistory': variantsHistory!,
    };