Skip to content

Commit

Permalink
added constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Oct 27, 2023
1 parent 21b752e commit 998bb01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/twilio/rest/content/v1/Content.java
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ public String getVariables() {
@JsonProperty("types")
@Getter @Setter private Types types;

public ContentCreateRequest(final String language, final Types types ) {
this.language = language;
this.types = types;
}

public static ContentCreateRequest fromJson(String jsonString, ObjectMapper mapper) throws IOException {
return mapper.readValue(jsonString, ContentCreateRequest.class);
Expand Down

0 comments on commit 998bb01

Please sign in to comment.