method UserAgent.prototype.toJSONView codeUserAgent.prototype.toJSON(): { browser: Browser; cpu: Cpu; device: Device; engine: Engine; os: Os; ua: string; }Converts the current instance to a JSON representation. Return Type{ browser: Browser; cpu: Cpu; device: Device; engine: Engine; os: Os; ua: string; }View code