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