private function transformErrorToMessage($jsonDecodedObject)
    {
        if (property_exists($jsonDecodedObject,"error"))
        {
            $message = $jsonDecodedObject->error->message;
            if (!is_object($message))
            {
                return $message;
            }
            else
            {
                $messageArray = [];
                foreach ($message as $key => $value)
                {
                    array_push($messageArray,$value);
                }
                return implode(", ",$messageArray);
            }
        }
        return null;
    }