toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'schema_version'] = this.schemaVersion;
json[r'email'] = this.email;
json[r'status'] = this.status;
json[r'action'] = this.action;
if (this.subStatus != null) {
json[r'sub_status'] = this.subStatus;
} else {
json[r'sub_status'] = null;
}
json[r'domain'] = this.domain;
json[r'mx_found'] = this.mxFound;
if (this.mxHost != null) {
json[r'mx_host'] = this.mxHost;
} else {
json[r'mx_host'] = null;
}
if (this.smtpCheck != null) {
json[r'smtp_check'] = this.smtpCheck;
} else {
json[r'smtp_check'] = null;
}
if (this.catchAll != null) {
json[r'catch_all'] = this.catchAll;
} else {
json[r'catch_all'] = null;
}
json[r'disposable'] = this.disposable;
json[r'role_account'] = this.roleAccount;
json[r'free_provider'] = this.freeProvider;
json[r'depth'] = this.depth;
json[r'processed_at'] = this.processedAt.toUtc().toIso8601String();
if (this.suggestedEmail != null) {
json[r'suggested_email'] = this.suggestedEmail;
} else {
json[r'suggested_email'] = null;
}
if (this.retryAfterMs != null) {
json[r'retry_after_ms'] = this.retryAfterMs;
} else {
json[r'retry_after_ms'] = null;
}
if (this.suppressionMatch != null) {
json[r'suppression_match'] = this.suppressionMatch;
} else {
json[r'suppression_match'] = null;
}
if (this.policyApplied != null) {
json[r'policy_applied'] = this.policyApplied;
} else {
json[r'policy_applied'] = null;
}
return json;
}