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