public function multipleToAPIResponseData(?array $resources): APIResponseData
    {
        if(is_null($resources)) {
            return $this->toAPIResponseData(null);
        }

        return new APIResponseData(array_map(function(Resource $resource) {
            return $this->toAPIResponseData($resource)->getData();
        }, $resources));
    }