class AlertSerializer implements Serializer<Alert> {

    @Override
    public void configure(Map<String, ?> configs, boolean isKey) {
        Serializer.super.configure(configs, isKey);
    }

    @Override
    public byte[] serialize(String s, Alert alert) {<FILL_FUNCTION_BODY>}

    @Override
    public byte[] serialize(String topic, Headers headers, Alert data) {
        return Serializer.super.serialize(topic, headers, data);
    }

    @Override
    public void close() {
        Serializer.super.close();
    }
}

        if (alert == null){
            return null;
        }
        return JsonUtil.toJson(alert).getBytes();
    
<no_super_class>