VanillaCampaignPayload.fromJson constructor

VanillaCampaignPayload.fromJson(
  1. Map _json
)

Implementation

VanillaCampaignPayload.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,
        experimentalCampaignId: _json.containsKey('experimentalCampaignId')
            ? _json['experimentalCampaignId'] as core.String
            : null,
      );