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 6886611 commit 62e8003Copy full SHA for 62e8003
src/main/java/roomescape/model/time/Time.java
@@ -1,14 +1,18 @@
1
package roomescape.model.time;
2
3
import com.fasterxml.jackson.annotation.JsonCreator;
4
+import com.fasterxml.jackson.annotation.JsonProperty;
5
6
public class Time {
7
8
private Long id;
9
private String time;
10
11
+ public Time() {
12
+ }
13
+
14
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
- public Time(String time) {
15
+ public Time(@JsonProperty("time") String time) {
16
this.time = time;
17
}
18
0 commit comments