using System;
namespace SabreTools.Models
{
///
/// Represents a mapping to internal models
///
[AttributeUsage(AttributeTargets.Field)]
public class MappingAttribute : Attribute
{
///
/// Internal name for the mapping
///
public string Name { get; set; }
///
/// Determines if the mapped value is required or not
///
public bool Required { get; set; }
public MappingAttribute(string name, bool required = false)
{
this.Name = name;
this.Required = required;
}
}
}