Commit 5ce26e1
committed
Include pet details in CommentModel serialization
Add a nested 'pets' object to CommentModel.toMap so serialized comments include the pet's name and profile image URL (mapped from petName and petProfileImageUrl). This allows downstream consumers to access basic pet info alongside the comment payload.1 parent 35b9d94 commit 5ce26e1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| |||
0 commit comments