Class ProductImage
An image of the product.
public record ProductImage : IEquatable<ProductImage>
- Inheritance
-
ProductImage
- Implements
- Inherited Members
Properties
ProductImageField
An image of the product to be recontextualized.
[JsonPropertyName("productImage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Image? ProductImageField { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ProductImage object.
public static ProductImage? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ProductImage
The deserialized ProductImage object, or null if deserialization fails.