class BaseSchema(Schema): utc_time = fields.LocalDateTime() machine_time = custom_fields.UTCDateTime() type = custom_fields.ClassName() meta_type = fields.String() description = custom_fields.Unicode() line_no = fields.Integer() category = fields.String() flag = fields.String() def load(self, *args, **kwargs): raise NotImplementedError("Only serialization is supported.")
class GroupSchema(Schema): type = custom_fields.ClassName() passed = fields.Boolean() meta_type = fields.String() description = custom_fields.Unicode(allow_none=True) entries = GenericEntryList(allow_none=True)