UriBasedDirective constructor Null safety

UriBasedDirective()