ExperimentDescription.fromJson constructor

ExperimentDescription.fromJson(
  1. Map _json
)

Implementation

ExperimentDescription.fromJson(core.Map _json)
    : this(
        experimentId: _json.containsKey('experimentId')
            ? _json['experimentId'] as core.String
            : null,
        experimentStartTime: _json.containsKey('experimentStartTime')
            ? _json['experimentStartTime'] as core.String
            : null,
        timeToLiveMillis: _json.containsKey('timeToLiveMillis')
            ? _json['timeToLiveMillis'] as core.String
            : null,
        triggerEvent: _json.containsKey('triggerEvent')
            ? _json['triggerEvent'] as core.String
            : null,
        triggerTimeoutMillis: _json.containsKey('triggerTimeoutMillis')
            ? _json['triggerTimeoutMillis'] as core.String
            : null,
        variantId: _json.containsKey('variantId')
            ? _json['variantId'] as core.String
            : null,
      );