Package io.voucherify.client.model
Class ValidationRule.ContextTypeEnum.Adapter
java.lang.Object
com.google.gson.TypeAdapter<ValidationRule.ContextTypeEnum>
io.voucherify.client.model.ValidationRule.ContextTypeEnum.Adapter
- Enclosing class:
- ValidationRule.ContextTypeEnum
public static class ValidationRule.ContextTypeEnum.Adapter
extends com.google.gson.TypeAdapter<ValidationRule.ContextTypeEnum>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader jsonReader) voidwrite(com.google.gson.stream.JsonWriter jsonWriter, ValidationRule.ContextTypeEnum enumeration) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, ValidationRule.ContextTypeEnum enumeration) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<ValidationRule.ContextTypeEnum>- Throws:
IOException
-
read
public ValidationRule.ContextTypeEnum read(com.google.gson.stream.JsonReader jsonReader) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<ValidationRule.ContextTypeEnum>- Throws:
IOException
-