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.")
        writer.write_bool_value("allowStaffSelection", self.allow_staff_selection)
        writer.write_collection_of_object_values("customAvailabilities", self.custom_availabilities)
        writer.write_object_value("generalAvailability", self.general_availability)
        writer.write_bool_value("isMeetingInviteToCustomersEnabled", self.is_meeting_invite_to_customers_enabled)
        writer.write_timedelta_value("maximumAdvance", self.maximum_advance)
        writer.write_timedelta_value("minimumLeadTime", self.minimum_lead_time)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_bool_value("sendConfirmationsToOwner", self.send_confirmations_to_owner)
        writer.write_timedelta_value("timeSlotInterval", self.time_slot_interval)
        writer.write_additional_data_value(self.additional_data)

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