ExperimentalCampaignPayload.fromJson constructor

ExperimentalCampaignPayload.fromJson(
  1. Map _json
)

Implementation

ExperimentalCampaignPayload.fromJson(core.Map _json)
    : this(
        campaignEndTimeMillis: _json.containsKey('campaignEndTimeMillis')
            ? _json['campaignEndTimeMillis'] as core.String
            : null,
        campaignId: _json.containsKey('campaignId')
            ? _json['campaignId'] as core.String
            : null,
        campaignName: _json.containsKey('campaignName')
            ? _json['campaignName'] as core.String
            : null,
        campaignStartTimeMillis: _json.containsKey('campaignStartTimeMillis')
            ? _json['campaignStartTimeMillis'] as core.String
            : null,
        experimentPayload: _json.containsKey('experimentPayload')
            ? ExperimentPayload.fromJson(_json['experimentPayload']
                as core.Map<core.String, core.dynamic>)
            : null,
      );