File tree Expand file tree Collapse file tree 2 files changed +20
-18
lines changed
src/main/java/com/devcycle/sdk/server/local/model Expand file tree Collapse file tree 2 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 11package com .devcycle .sdk .server .local .model ;
22
3- import com .fasterxml .jackson .annotation .JsonCreator ;
43import com .fasterxml .jackson .annotation .JsonProperty ;
4+ import lombok .AllArgsConstructor ;
5+ import lombok .NoArgsConstructor ;
6+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
57
8+ @ AllArgsConstructor
9+ @ NoArgsConstructor
10+ @ JsonIgnoreProperties (ignoreUnknown = true )
611public class EnvironmentMetadata {
7- public final String id ;
8- public final String key ;
9-
10- @ JsonCreator
11- public EnvironmentMetadata (@ JsonProperty ("id" ) String id , @ JsonProperty ("key" ) String key ) {
12- this .id = id ;
13- this .key = key ;
14- }
12+ @ JsonProperty ("id" )
13+ public String id ;
14+ @ JsonProperty ("key" )
15+ public String key ;
1516}
Original file line number Diff line number Diff line change 11package com .devcycle .sdk .server .local .model ;
22
3- import com .fasterxml .jackson .annotation .JsonCreator ;
3+ import lombok .AllArgsConstructor ;
4+ import lombok .NoArgsConstructor ;
5+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
46import com .fasterxml .jackson .annotation .JsonProperty ;
57
8+ @ AllArgsConstructor
9+ @ NoArgsConstructor
10+ @ JsonIgnoreProperties (ignoreUnknown = true )
611public class ProjectMetadata {
7- public final String id ;
8- public final String key ;
9-
10- @ JsonCreator
11- public ProjectMetadata (@ JsonProperty ("id" ) String id , @ JsonProperty ("key" ) String key ) {
12- this .id = id ;
13- this .key = key ;
14- }
12+ @ JsonProperty ("id" )
13+ public String id ;
14+ @ JsonProperty ("key" )
15+ public String key ;
1516}
You can’t perform that action at this time.
0 commit comments