GetDeliverabilityTestReportResponse.fromJson constructor

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

Implementation

factory GetDeliverabilityTestReportResponse.fromJson(
    Map<String, dynamic> json) {
  return GetDeliverabilityTestReportResponse(
    deliverabilityTestReport: DeliverabilityTestReport.fromJson(
        json['DeliverabilityTestReport'] as Map<String, dynamic>),
    ispPlacements: (json['IspPlacements'] as List)
        .whereNotNull()
        .map((e) => IspPlacement.fromJson(e as Map<String, dynamic>))
        .toList(),
    overallPlacement: PlacementStatistics.fromJson(
        json['OverallPlacement'] as Map<String, dynamic>),
    message: json['Message'] as String?,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}