コード例 #1
0
        public AutoMapper(JObject mapping)
        {
            _mappingFile = mapping.ToObject <JsonMapping>();

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

            transform = new JsonTransformation(_mappingFile);
        }