using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text.Json.Serialization;

namespace eSuite.API.Models;

/// <summary>
/// Used to as a parameter to pass an email address.
/// </summary>
public class EmailAddress
{
    /// <summary>
    /// An email address
    /// </summary>
    [JsonPropertyName("email")]
    [Required]
    [DefaultValue("testuser@sun-strategy.com")]
    public string Email { get; set; } = string.Empty;
}