Example #1
0
        public AutoMapper(JObject mapping)
        {
            _mappingFile = mapping.ToObject <JsonMapping>();

            transform = new JsonTransformation(_mappingFile);
        }
Example #2
0
        public AutoMapper(string mapping)
        {
            _mappingFile = JsonConvert.DeserializeObject <JsonMapping>(mapping);

            transform = new JsonTransformation(_mappingFile);
        }