Add a ToDictionary function to the DynamicJsonObject

This will help with automapping libraries.