using System.Reflection;
namespace JSONAPI.Core
{
///
/// Stores a resource type's field and its usage.
///
public abstract class ResourceTypeField
{
internal ResourceTypeField(PropertyInfo property, string jsonKey)
{
JsonKey = jsonKey;
Property = property;
}
///
/// The PropertyInfo backing this ModelProperty
///
public PropertyInfo Property { get; private set; }
///
/// The key that will be used to represent this property in JSON API documents
///
public string JsonKey { get; private set; }
}
}