DomainDeliverabilityCampaign.fromJson constructor

DomainDeliverabilityCampaign.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DomainDeliverabilityCampaign.fromJson(Map<String, dynamic> json) {
  return DomainDeliverabilityCampaign(
    campaignId: json['CampaignId'] as String?,
    deleteRate: json['DeleteRate'] as double?,
    esps: (json['Esps'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    firstSeenDateTime: timeStampFromJson(json['FirstSeenDateTime']),
    fromAddress: json['FromAddress'] as String?,
    imageUrl: json['ImageUrl'] as String?,
    inboxCount: json['InboxCount'] as int?,
    lastSeenDateTime: timeStampFromJson(json['LastSeenDateTime']),
    projectedVolume: json['ProjectedVolume'] as int?,
    readDeleteRate: json['ReadDeleteRate'] as double?,
    readRate: json['ReadRate'] as double?,
    sendingIps: (json['SendingIps'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    spamCount: json['SpamCount'] as int?,
    subject: json['Subject'] as String?,
  );
}