toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'userId'] = this.userId;
json[r'domain'] = this.domain;
json[r'verificationToken'] = this.verificationToken;
json[r'dkimTokens'] = this.dkimTokens;
if (this.missingRecordsMessage != null) {
json[r'missingRecordsMessage'] = this.missingRecordsMessage;
} else {
json[r'missingRecordsMessage'] = null;
}
json[r'hasMissingRecords'] = this.hasMissingRecords;
json[r'isVerified'] = this.isVerified;
json[r'domainNameRecords'] = this.domainNameRecords;
if (this.catchAllInboxId != null) {
json[r'catchAllInboxId'] = this.catchAllInboxId;
} else {
json[r'catchAllInboxId'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
json[r'domainType'] = this.domainType;
return json;
}