Add asdict method to PlexServerConfig
MODIFY
plextraktsync/config/PlexServerConfig.py
plextraktsync/config/PlexServerConfig.py
-from dataclasses import dataclass
+from dataclasses import asdict, dataclass
from typing import List
@@ -11,3 +11,9 @@ class PlexServerConfig:
name: str = ""
token: str = ""
urls: List[str] = None
+
+ def asdict(self):
+ data = asdict(self)
+ del data["name"]
+
+ return data

Add asdict method to PlexServerConfig