FetchEligibleCampaignsResponse.fromJson constructor

FetchEligibleCampaignsResponse.fromJson(
  1. Map _json
)

Implementation

FetchEligibleCampaignsResponse.fromJson(core.Map _json)
    : this(
        expirationEpochTimestampMillis:
            _json.containsKey('expirationEpochTimestampMillis')
                ? _json['expirationEpochTimestampMillis'] as core.String
                : null,
        messages: _json.containsKey('messages')
            ? (_json['messages'] as core.List)
                .map((value) => ThickContent.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );