public static <T> Serde<T> serdeFrom(final Serializer<T> serializer, final Deserializer<T> deserializer) {
        if (serializer == null) {
            throw new IllegalArgumentException("serializer must not be null");
        }
        if (deserializer == null) {
            throw new IllegalArgumentException("deserializer must not be null");
        }

        return new WrapperSerde<>(serializer, deserializer);
    }
Construct a serde object from separate serializer and deserializer

@param serializer    must not be null.
@param deserializer  must not be null.
clients/src/main/java/org/apache/kafka/common/serialization/Serdes.java