mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 00:13:56 +00:00
#631 - Partial Response : Implement Field to json conversion
This commit is contained in:
1 parent
c5b9c63b39
commit
44e4b3c803
5 files changed
+82
-9
No files matched your search
@@ -59,7 +59,7 @@ public class Video {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{"
|
||||
+ "\"id\": \"" + id + "\","
|
||||
+ "\"id\": " + id + ","
|
||||
+ "\"title\": \"" + title + "\","
|
||||
+ "\"length\": " + length + ","
|
||||
+ "\"description\": \"" + description + "\","
|
||||
|
||||
Reference in new issue
Block a user