Experiment constructor
Experiment({
- String? name,
- String? displayName,
- String? description,
- Experiment_State? state,
- Experiment_Definition? definition,
- Experiment_Result? result,
- Timestamp? createTime,
- Timestamp? startTime,
- Timestamp? endTime,
- Timestamp? lastUpdateTime,
- Duration? experimentLength,
- 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;
}