fixed serialization in case of null values read
This commit is contained in:
parent
553b9131d4
commit
40fd77bf6c
@ -45,16 +45,27 @@ class EvaluationType(IntEnum):
|
|||||||
yellow = 2
|
yellow = 2
|
||||||
red = 3
|
red = 3
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _missing_(cls, value):
|
||||||
|
return cls.undefined
|
||||||
|
|
||||||
class NotificationType(IntEnum):
|
class NotificationType(IntEnum):
|
||||||
undefined = 0
|
undefined = 0
|
||||||
email = 1
|
email = 1
|
||||||
push = 2
|
push = 2
|
||||||
|
@classmethod
|
||||||
|
def _missing_(cls, value):
|
||||||
|
return cls.undefined
|
||||||
|
|
||||||
class ShipcallType(IntEnum):
|
class ShipcallType(IntEnum):
|
||||||
undefined = 0
|
undefined = 0
|
||||||
arrival = 1
|
arrival = 1
|
||||||
departure = 2
|
departure = 2
|
||||||
shifting = 3
|
shifting = 3
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def _missing_(cls, value):
|
||||||
|
return cls.undefined
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user