Experiment constructor

Experiment({
  1. String? name,
  2. String? displayName,
  3. String? description,
  4. Experiment_State? state,
  5. Experiment_Definition? definition,
  6. Experiment_Result? result,
  7. Timestamp? createTime,
  8. Timestamp? startTime,
  9. Timestamp? endTime,
  10. Timestamp? lastUpdateTime,
  11. Duration? experimentLength,
  12. Iterable<VariantsHistory>? variantsHistory,
})

Implementation

factory Experiment({
  $core.String? name,
  $core.String? displayName,
  $core.String? description,
  Experiment_State? state,
  Experiment_Definition? definition,
  Experiment_Result? result,
  $21.Timestamp? createTime,
  $21.Timestamp? startTime,
  $21.Timestamp? endTime,
  $21.Timestamp? lastUpdateTime,
  $22.Duration? experimentLength,
  $core.Iterable<VariantsHistory>? variantsHistory,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (description != null) {
    _result.description = description;
  }
  if (state != null) {
    _result.state = state;
  }
  if (definition != null) {
    _result.definition = definition;
  }
  if (result != null) {
    _result.result = result;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (startTime != null) {
    _result.startTime = startTime;
  }
  if (endTime != null) {
    _result.endTime = endTime;
  }
  if (lastUpdateTime != null) {
    _result.lastUpdateTime = lastUpdateTime;
  }
  if (experimentLength != null) {
    _result.experimentLength = experimentLength;
  }
  if (variantsHistory != null) {
    _result.variantsHistory.addAll(variantsHistory);
  }
  return _result;
}