SwipeGesture Mobile Command for Android Not working

With reference to the Appium Doc -

I am trying to do swipeGesture on Android.
I have used the same statement -
((JavascriptExecutor) driver).executeScript(“mobile: swipeGesture”, ImmutableMap**.of(**
“left”, 1374, “top”, 151,
“width”, 1138, “height”, 1148,
“direction”, “left”,
“percent”, 0.75
));

But it is trowing an error on .of method of ImmutableMap as it is NOT taking the K,V pairs.
Upon searching got to know that , it can take only 5 arguments with it NOT 6.

How can it be solved so that the mobile command:swipeGesture can be used easily.