Class StyleReferenceConfig
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a StyleReferenceConfig object.
public static StyleReferenceConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- StyleReferenceConfig
The deserialized StyleReferenceConfig object, or null if deserialization fails.