public TsZeroType GetTsNullability(PropertyInfo property)
        {
            // don't reference the assembly just to get the name of an attribute preventing the dependency conflicts
            var optional = property.CustomAttributes.All(x => x.AttributeType.Name != "RequiredAttribute");

            return(TsZeroType.Optional(optional));
        }
 public TsZeroType GetTsNullability(PropertyInfo property) =>
 TsZeroType.Optional(
     property.PropertyType.IsValueType &&
     Nullable.GetUnderlyingType(property.PropertyType) != null);