methodCookie.toJSONtoJSON(): CookieInit;Returns the cookie's name, value, and attributes as a plain objectReferenced typesinterface CookieInitdomain?: stringexpires?: string | number | DatehttpOnly?: booleanmaxAge?: numbername?: stringpartitioned?: booleanpath?: stringDefaults to '/'. To allow the browser to set the path, use an empty string.sameSite?: CookieSameSiteDefaults to lax.secure?: booleanvalue?: string