def serialize(self, sw):
detail = None<EOL>if self.detail is not None: <EOL><INDENT>detail = Detail()<EOL>detail.any = self.detail<EOL><DEDENT>pyobj = FaultType(self.code, self.string, self.actor, detail)<EOL>sw.serialize(pyobj, typed=False)<EOL>
Serialize the object.