and imagine that some properties within products are dynamic. For example imagine that quantity and category are dynamic. if this is coming through as a request, how can we get ServiceStack to parse this into an object for further consumption?
Thanks mythz. What do you recommend for this scenario where custom attributes / properties need to be sent to the backend and stored appropriately? This is a high transaction service btw in case performance is massively affected.
I dislike dynamic schemas for similar reasons as dynamic vs static typing, but if this schema wasn’t fixed I’d still be deserializing into a Type which allows for unstructured data like a Dictionary<string,string>, e.g:
class Order
{
public string OrderId { get; set; }
public List<Dictionary<string,string>> Products { get; set; }
}