toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'user'] = this.user;
  if (this.notificationType != null) {
    json[r'notification_type'] = this.notificationType;
  } else {
    json[r'notification_type'] = null;
  }
  if (this.receivesEmail != null) {
    json[r'receives_email'] = this.receivesEmail;
  } else {
    json[r'receives_email'] = null;
  }
  return json;
}