DeliverabilityReport.fromJson constructor

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

Implementation

factory DeliverabilityReport.fromJson(Map<String, dynamic> json) {
  return DeliverabilityReport(
    spf: EmailAuthenticationResult.fromJson(json['spf']),
    dkim: List<EmailAuthenticationResult>.from(
        json['dkim'].map((item) => EmailAuthenticationResult.fromJson(item))),
    dmarc: EmailAuthenticationResult.fromJson(json['dmarc']),
    blockLists: List<BlockListResult>.from(
        json['blockLists'].map((item) => BlockListResult.fromJson(item))),
    content: Content.fromJson(json['content']),
    dnsRecords: DnsRecords.fromJson(json['dnsRecords']),
    spamAssassin: SpamAssassinResult.fromJson(json['spamAssassin']),
  );
}