toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.notificationFrequency != null) {
    json[r'notificationFrequency'] = this.notificationFrequency;
  } else {
    json[r'notificationFrequency'] = null;
  }
  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;
  }
  return json;
}