fixed serialization in case of null values read

This commit is contained in:
Daniel Schick 2024-04-08 13:27:33 +02:00
parent 553b9131d4
commit 40fd77bf6c

View File

@ -45,10 +45,17 @@ class EvaluationType(IntEnum):
yellow = 2
red = 3
@classmethod
def _missing_(cls, value):
return cls.undefined
class NotificationType(IntEnum):
undefined = 0
email = 1
push = 2
@classmethod
def _missing_(cls, value):
return cls.undefined
class ShipcallType(IntEnum):
undefined = 0
@ -56,6 +63,10 @@ class ShipcallType(IntEnum):
departure = 2
shifting = 3
@classmethod
def _missing_(cls, value):
return cls.undefined
@dataclass
class History: