Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

JsonLdReviewModel.cs

using Newtonsoft.Json;

namespace Nop.Web.Models.JsonLD;

public record JsonLdReviewModel : JsonLdModel
{
    #region Properties

    [JsonProperty("@type")]
    public static string Type => "Review";

    [JsonProperty("author")]
    public JsonLdPersonModel Author { get; set; }

    [JsonProperty("datePublished")]
    public string DatePublished { get; set; }

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("reviewBody")]
    public string ReviewBody { get; set; }

    [JsonProperty("reviewRating")]
    public JsonLdRatingModel ReviewRating { get; set; }

    #endregion
}