private function getParameters($parametersJson)
{
if (null === $parametersJson) {
return;
}
$parameters = [];
if ($parametersJson) {
$parameters = json_decode($parametersJson, true);
if (null === $parameters) {
throw new \InvalidArgumentException(sprintf('Could not decode parameters JSON string: "%s"', $parametersJson));
}
}
return $parameters;
}