Table of Contents

Class SegmentImageResponse

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

The output images response.

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

Properties

GeneratedMasks

List of generated image masks.

[JsonPropertyName("generatedMasks")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<GeneratedImageMask>? GeneratedMasks { get; set; }

Property Value

List<GeneratedImageMask>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a SegmentImageResponse object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

SegmentImageResponse

The deserialized SegmentImageResponse object, or null if deserialization fails.