toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.spamVerdict != null) {
    json[r'spamVerdict'] = this.spamVerdict;
  } else {
    json[r'spamVerdict'] = null;
  }
  if (this.virusVerdict != null) {
    json[r'virusVerdict'] = this.virusVerdict;
  } else {
    json[r'virusVerdict'] = null;
  }
  if (this.spfVerdict != null) {
    json[r'spfVerdict'] = this.spfVerdict;
  } else {
    json[r'spfVerdict'] = null;
  }
  if (this.dkimVerdict != null) {
    json[r'dkimVerdict'] = this.dkimVerdict;
  } else {
    json[r'dkimVerdict'] = null;
  }
  if (this.dmarcVerdict != null) {
    json[r'dmarcVerdict'] = this.dmarcVerdict;
  } else {
    json[r'dmarcVerdict'] = null;
  }
  return json;
}