byte[] serializedBytes = metricsSnapshotSerde.toBytes(metricsSnapshot); MetricsSnapshot deserializedMetricsSnapshot = metricsSnapshotSerde.fromBytes(serializedBytes);
byte[] serializedBytes = metricsSnapshotSerde.toBytes(metricsSnapshot); MetricsSnapshot deserializedMetricsSnapshot = metricsSnapshotSerde.fromBytes(serializedBytes);