We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11049aa commit c0f737dCopy full SHA for c0f737d
backend/demo-group7/src/main/java/com/group7/demo/dtos/PostResponse.java
@@ -1,6 +1,5 @@
1
package com.group7.demo.dtos;
2
3
-import com.fasterxml.jackson.annotation.JsonProperty;
4
import lombok.AllArgsConstructor;
5
import lombok.Builder;
6
import lombok.Data;
@@ -25,14 +24,4 @@ public class PostResponse {
25
24
private boolean isLiked;
26
private boolean isBookmarked;
27
private String imageUrl;
28
-
29
- @JsonProperty("isLiked") // Explicitly specify the field name for JSON serialization
30
- public boolean getIsLiked() {
31
- return isLiked;
32
- }
33
34
35
- public boolean getIsBookmarked() {
36
- return isBookmarked;
37
38
}
0 commit comments