internal static void ExtendProperties(this IDictionary <string, Schema> schemaProperties, JsonPropertyCollection jsonProperties) { if (schemaProperties is null) { return; } foreach (var schemaProperty in schemaProperties) { var jsonProperty = jsonProperties.FirstOrDefault(x => x.PropertyName == schemaProperty.Key); schemaProperty.Value.ExtendProperty(jsonProperty); } }
private string GetJsonPropertyName(string name) { var property = _jsonProperties.FirstOrDefault(x => x.UnderlyingName == name); if (property == null || property.Equals(default))