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,16 +45,27 @@ 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
arrival = 1
departure = 2
shifting = 3
@classmethod
def _missing_(cls, value):
return cls.undefined
@dataclass