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_datetime_value("expirationDateTime", self.expiration_date_time)
        writer.write_str_value("fingerprint", self.fingerprint)
        writer.write_datetime_value("firstSeenDateTime", self.first_seen_date_time)
        writer.write_datetime_value("issueDateTime", self.issue_date_time)
        writer.write_object_value("issuer", self.issuer)
        writer.write_datetime_value("lastSeenDateTime", self.last_seen_date_time)
        writer.write_collection_of_object_values("relatedHosts", self.related_hosts)
        writer.write_str_value("serialNumber", self.serial_number)
        writer.write_str_value("sha1", self.sha1)
        writer.write_object_value("subject", self.subject)

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