YPS-Beer/backend/YPS.Beer/Models/Beer.cs

22 lines
616 B
C#
Raw Normal View History

2023-12-07 00:20:59 +00:00
using System.Text.Json.Serialization;
namespace YPS.Beer.Models;
public class Beer
{
public int Id { get; set; }
public string Name { get; set; } = null!;
public string Tagline { get; set; } = null!;
[JsonPropertyName("first_brewed")]
public string FirstBrewed { get; set; } = null!;
public string Description { get; set; } = null!;
[JsonPropertyName("image_url")]
public string ImageUrl { get; set; } = null!;
public float Abv { get; set; }
public float Iby { get; set; }
[JsonPropertyName("food_pairing")]
public string[] FoodPairing { get; set; } = null!;
}