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_timedelta_value("durationBeforeAutomaticDenial", self.duration_before_automatic_denial)
        writer.write_timedelta_value("durationBeforeEscalation", self.duration_before_escalation)
        writer.write_collection_of_object_values("escalationApprovers", self.escalation_approvers)
        writer.write_collection_of_object_values("fallbackEscalationApprovers", self.fallback_escalation_approvers)
        writer.write_collection_of_object_values("fallbackPrimaryApprovers", self.fallback_primary_approvers)
        writer.write_bool_value("isApproverJustificationRequired", self.is_approver_justification_required)
        writer.write_bool_value("isEscalationEnabled", self.is_escalation_enabled)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_collection_of_object_values("primaryApprovers", self.primary_approvers)
        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/access_package_approval_stage.py