APIObject constructor Null safety

APIObject()