Class TextToImageUltraRequestGenerateParams.AspectRatioEnum.Adapter
java.lang.Object
com.google.gson.TypeAdapter<TextToImageUltraRequestGenerateParams.AspectRatioEnum>
cloud.liblibai.openapi.client.model.TextToImageUltraRequestGenerateParams.AspectRatioEnum.Adapter
- Enclosing class:
TextToImageUltraRequestGenerateParams.AspectRatioEnum
public static class TextToImageUltraRequestGenerateParams.AspectRatioEnum.Adapter
extends com.google.gson.TypeAdapter<TextToImageUltraRequestGenerateParams.AspectRatioEnum>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader jsonReader) voidwrite(com.google.gson.stream.JsonWriter jsonWriter, TextToImageUltraRequestGenerateParams.AspectRatioEnum 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, TextToImageUltraRequestGenerateParams.AspectRatioEnum enumeration) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<TextToImageUltraRequestGenerateParams.AspectRatioEnum>- Throws:
IOException
-
read
public TextToImageUltraRequestGenerateParams.AspectRatioEnum read(com.google.gson.stream.JsonReader jsonReader) throws IOException - Specified by:
readin classcom.google.gson.TypeAdapter<TextToImageUltraRequestGenerateParams.AspectRatioEnum>- Throws:
IOException
-