Map<String, Object?> toJson() { var body = this.body; var public = this.public; final json = <String, Object?>{}; if (body != null) { json[r'body'] = body; } json[r'public'] = public; return json; }