Class CustomizedAvatar
Configures the customized avatar to be used in the session.
public record CustomizedAvatar : IEquatable<CustomizedAvatar>
- Inheritance
-
CustomizedAvatar
- Implements
- Inherited Members
Properties
ImageData
The data of the reference image. The dimensions of the reference image should be 9:16 (portrait) with a minimum resolution of 704x1280.
[JsonPropertyName("imageData")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public byte[]? ImageData { get; set; }
Property Value
- byte[]
ImageMimeType
The mime type of the reference image, e.g., "image/jpeg".
[JsonPropertyName("imageMimeType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ImageMimeType { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a CustomizedAvatar object.
public static CustomizedAvatar? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- CustomizedAvatar
The deserialized CustomizedAvatar object, or null if deserialization fails.