methodCookie.toJSONtoJSON(): CookieInit;Serialize the cookie to a JSON 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