TrafficStats.fromJson constructor

TrafficStats.fromJson(
  1. Map json_
)

Implementation

TrafficStats.fromJson(core.Map json_)
  : this(
      deliveryErrors: (json_['deliveryErrors'] as core.List?)
          ?.map(
            (value) => DeliveryError.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      dkimSuccessRatio: (json_['dkimSuccessRatio'] as core.num?)?.toDouble(),
      dmarcSuccessRatio: (json_['dmarcSuccessRatio'] as core.num?)
          ?.toDouble(),
      domainReputation: json_['domainReputation'] as core.String?,
      inboundEncryptionRatio: (json_['inboundEncryptionRatio'] as core.num?)
          ?.toDouble(),
      ipReputations: (json_['ipReputations'] as core.List?)
          ?.map(
            (value) => IpReputation.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      name: json_['name'] as core.String?,
      outboundEncryptionRatio: (json_['outboundEncryptionRatio'] as core.num?)
          ?.toDouble(),
      spammyFeedbackLoops: (json_['spammyFeedbackLoops'] as core.List?)
          ?.map(
            (value) => FeedbackLoop.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      spfSuccessRatio: (json_['spfSuccessRatio'] as core.num?)?.toDouble(),
      userReportedSpamRatio: (json_['userReportedSpamRatio'] as core.num?)
          ?.toDouble(),
      userReportedSpamRatioLowerBound:
          (json_['userReportedSpamRatioLowerBound'] as core.num?)?.toDouble(),
      userReportedSpamRatioUpperBound:
          (json_['userReportedSpamRatioUpperBound'] as core.num?)?.toDouble(),
    );