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("acceptMappedClaims", self.accept_mapped_claims)
        writer.write_collection_of_primitive_values("knownClientApplications", self.known_client_applications)
        writer.write_collection_of_object_values("oauth2PermissionScopes", self.oauth2_permission_scopes)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_collection_of_object_values("preAuthorizedApplications", self.pre_authorized_applications)
        writer.write_int_value("requestedAccessTokenVersion", self.requested_access_token_version)
        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/api_application.py