Table of Contents

Class StyleReferenceConfig

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Configuration for a Style reference image.

public record StyleReferenceConfig : IEquatable<StyleReferenceConfig>
Inheritance
StyleReferenceConfig
Implements
Inherited Members

Properties

StyleDescription

A text description of the style to use for the generated image.

[JsonPropertyName("styleDescription")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? StyleDescription { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a StyleReferenceConfig object.

public static StyleReferenceConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

StyleReferenceConfig

The deserialized StyleReferenceConfig object, or null if deserialization fails.