toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.domainId != null) {
json[r'domainId'] = this.domainId;
} else {
json[r'domainId'] = null;
}
if (this.emailAddress != null) {
json[r'emailAddress'] = this.emailAddress;
} else {
json[r'emailAddress'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
json[r'favourite'] = this.favourite;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.tags != null) {
json[r'tags'] = this.tags;
} else {
json[r'tags'] = null;
}
json[r'teamAccess'] = this.teamAccess;
if (this.inboxType != null) {
json[r'inboxType'] = this.inboxType;
} else {
json[r'inboxType'] = null;
}
json[r'virtualInbox'] = this.virtualInbox;
if (this.expiresAt != null) {
json[r'expiresAt'] = this.expiresAt;
} else {
json[r'expiresAt'] = null;
}
return json;
}