public static AppConfigurationMapperAttributes IsRequired(this AppConfigurationMapperAttributes configValue, bool isRequired = true) { if (configValue == null) return null; configValue.ValueIsRequired = isRequired; return configValue; }