DomainDnsErrorEventData.fromJson constructor

DomainDnsErrorEventData.fromJson(
  1. JsonMap json
)

Decodes DNS error event data from JSON.

Implementation

factory fromJson(JsonMap json) => DomainDnsErrorEventData(
  domain: json['domain'] as String? ?? '',
  accountId: json['account_id'] as String? ?? '',
  spfValid: json['spf_valid'] as bool? ?? false,
  dkimValid: json['dkim_valid'] as bool? ?? false,
  dmarcValid: json['dmarc_valid'] as bool? ?? false,
  dnsLastCheckedAt: decodeDateTime(json['dns_last_checked_at']),
  raw: json,
);