GetDeliverabilityDashboardOptionsResponse.fromJson constructor

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

Implementation

factory GetDeliverabilityDashboardOptionsResponse.fromJson(
    Map<String, dynamic> json) {
  return GetDeliverabilityDashboardOptionsResponse(
    dashboardEnabled: json['DashboardEnabled'] as bool,
    accountStatus: (json['AccountStatus'] as String?)
        ?.toDeliverabilityDashboardAccountStatus(),
    activeSubscribedDomains: (json['ActiveSubscribedDomains'] as List?)
        ?.whereNotNull()
        .map((e) => DomainDeliverabilityTrackingOption.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    pendingExpirationSubscribedDomains:
        (json['PendingExpirationSubscribedDomains'] as List?)
            ?.whereNotNull()
            .map((e) => DomainDeliverabilityTrackingOption.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    subscriptionExpiryDate: timeStampFromJson(json['SubscriptionExpiryDate']),
  );
}