Package com.twitter.clientlib.model
Class UsersLikesCreateResponseData
- java.lang.Object
-
- com.twitter.clientlib.model.UsersLikesCreateResponseData
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UsersLikesCreateResponseData extends ObjectUsersLikesCreateResponseData
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUsersLikesCreateResponseData.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_LIKED
-
Constructor Summary
Constructors Constructor Description UsersLikesCreateResponseData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UsersLikesCreateResponseDatafromJson(String jsonString)Create an instance of UsersLikesCreateResponseData given an JSON stringBooleangetLiked()Get likedinthashCode()UsersLikesCreateResponseDataliked(Boolean liked)voidsetLiked(Boolean liked)StringtoJson()Convert an instance of UsersLikesCreateResponseData to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
liked
public UsersLikesCreateResponseData liked(Boolean liked)
-
getLiked
@Nullable public Boolean getLiked()
Get liked- Returns:
- liked
-
setLiked
public void setLiked(Boolean liked)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to UsersLikesCreateResponseData
-
fromJson
public static UsersLikesCreateResponseData fromJson(String jsonString) throws IOException
Create an instance of UsersLikesCreateResponseData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UsersLikesCreateResponseData
- Throws:
IOException- if the JSON string is invalid with respect to UsersLikesCreateResponseData
-
toJson
public String toJson()
Convert an instance of UsersLikesCreateResponseData to an JSON string- Returns:
- JSON string
-
-