APITypeCodec constructor Null safety

APITypeCodec()