Example #1
0
        public virtual void DecodeFields <TData>(TData f) where TData : class, IIntegratedDocument
        {
            var internalDoc = f.Document?.Value;

            if (internalDoc == null)
            {
                return;
            }
            var fields = _encoder.GetFieldpairs(f).ToList();

            foreach (var field in fields)
            {
                internalDoc[field.Key] = field.Value;
            }
        }