Source code for LOGS.Entities.PersonCategory
from typing import Optional
from LOGS.Entity.SerializeableContent import SerializeableClass
[docs]
class PersonCategory(SerializeableClass):
id: Optional[int] = None
name: Optional[str] = None
def __str__(self):
s = (" name:'%s'" % self.name) if self.name else ""
return "<%s id:%s%s>" % (type(self).__name__, str(self.id), s)