toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.notificationFrequency != null) {
json[r'notificationFrequency'] = this.notificationFrequency;
} else {
json[r'notificationFrequency'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
if (this.pageTitle != null) {
json[r'pageTitle'] = this.pageTitle;
} else {
json[r'pageTitle'] = null;
}
if (this.url != null) {
json[r'url'] = this.url;
} else {
json[r'url'] = null;
}
json[r'urlId'] = this.urlId;
if (this.anonUserId != null) {
json[r'anonUserId'] = this.anonUserId;
} else {
json[r'anonUserId'] = null;
}
if (this.userId != null) {
json[r'userId'] = this.userId;
} else {
json[r'userId'] = null;
}
json[r'id'] = this.id;
return json;
}