ExperimentPayload.fromJson constructor
ExperimentPayload.fromJson(
- Map _json
Implementation
ExperimentPayload.fromJson(core.Map _json)
: this(
activateEventToLog: _json.containsKey('activateEventToLog')
? _json['activateEventToLog'] as core.String
: null,
clearEventToLog: _json.containsKey('clearEventToLog')
? _json['clearEventToLog'] as core.String
: null,
experimentId: _json.containsKey('experimentId')
? _json['experimentId'] as core.String
: null,
experimentStartTimeMillis:
_json.containsKey('experimentStartTimeMillis')
? _json['experimentStartTimeMillis'] as core.String
: null,
ongoingExperiments: _json.containsKey('ongoingExperiments')
? (_json['ongoingExperiments'] as core.List)
.map((value) => ExperimentLite.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
overflowPolicy: _json.containsKey('overflowPolicy')
? _json['overflowPolicy'] as core.String
: null,
setEventToLog: _json.containsKey('setEventToLog')
? _json['setEventToLog'] as core.String
: null,
timeToLiveMillis: _json.containsKey('timeToLiveMillis')
? _json['timeToLiveMillis'] as core.String
: null,
timeoutEventToLog: _json.containsKey('timeoutEventToLog')
? _json['timeoutEventToLog'] as core.String
: null,
triggerEvent: _json.containsKey('triggerEvent')
? _json['triggerEvent'] as core.String
: null,
triggerTimeoutMillis: _json.containsKey('triggerTimeoutMillis')
? _json['triggerTimeoutMillis'] as core.String
: null,
ttlExpiryEventToLog: _json.containsKey('ttlExpiryEventToLog')
? _json['ttlExpiryEventToLog'] as core.String
: null,
variantId: _json.containsKey('variantId')
? _json['variantId'] as core.String
: null,
);