def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        super().serialize(writer)
        writer.write_date_value("dayNoteDate", self.day_note_date)
        writer.write_object_value("draftDayNote", self.draft_day_note)
        writer.write_object_value("sharedDayNote", self.shared_day_note)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/day_note.py