Skip to content

Commit

Permalink
[MODORSERS-1026] - Added jsonProperty annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
azizbekxm committed Mar 29, 2024
1 parent 48e3ee4 commit e94d73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/folio/models/TemplateProcessingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ public TemplateProcessingRequest withContext(Context context) {

@Getter
public static class Context {
@JsonProperty
private List<User> users;
@JsonProperty
private List<Item> items;

public Context withUsers(List<User> users) {
Expand All @@ -73,6 +75,7 @@ public Context withUsers(List<User> users) {

@Getter
public static class User {
@JsonProperty
private String name;
public User withName(String name) {
this.name = name;
Expand All @@ -82,6 +85,7 @@ public User withName(String name) {

@Getter
public static class Item {
@JsonProperty
private String name;

public Item setName(String name) {
Expand Down

0 comments on commit e94d73d

Please sign in to comment.