Мое перечисление :
Код: Выделить всё
public enum CustomerContactType
{
[EnumMember(Value = "email")]
Email,
[EnumMember(Value = "phone")]
Phone,
[EnumMember(Value = "address")]
Address,
[EnumMember(Value = "mobile_phone")]
MobilePhone
}
Код: Выделить всё
{
"customer": {
"contact_type": "mobile_phone"
}
}
Подробнее здесь: https://stackoverflow.com/questions/783 ... -attribute