private static void ParseMap <T>( MapNode mapNode, T domainObject, FixedFieldMap <T> fixedFieldMap, PatternFieldMap <T> patternFieldMap) { if (mapNode == null) { return; } foreach (var propertyNode in mapNode) { propertyNode.ParseField(domainObject, fixedFieldMap, patternFieldMap); } }
private static void ParseMap <T>(MapNode mapNode, T domainObject, FixedFieldMap <T> fixedFieldMap, PatternFieldMap <T> patternFieldMap, List <string> requiredFields = null) { if (mapNode == null) { return; } foreach (var propertyNode in mapNode) { propertyNode.ParseField <T>(domainObject, fixedFieldMap, patternFieldMap); if (requiredFields != null) { requiredFields.Remove(propertyNode.Name); } } }