Popcorn is a .Net Middleware for your RESTful API that allows your consumers to request exactly as much or as little as they need, with no effort from you.
We want to support the scenario where the destination type is a strong type (eg 'Car') but the source is a dictionary. The simple implementation is to take each key in the dictionary and try to write it to a property in the target type. This is the same as Expand currently does, but instead of iterating over the source's properties we'd need to iterate over its keys.
We want to support the scenario where the destination type is a strong type (eg 'Car') but the source is a dictionary. The simple implementation is to take each key in the dictionary and try to write it to a property in the target type. This is the same as Expand currently does, but instead of iterating over the source's properties we'd need to iterate over its keys.