fixed serialization in case of null values read
This commit is contained in:
parent
553b9131d4
commit
40fd77bf6c
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user