Endpoint constructor Null safety

Endpoint()