public object Deserialize(Type type, byte[] data) { if (data == null) { throw new ArgumentNullException(nameof(data)); } var redisData = RedisData.GetRootAsRedisData(new ByteBuffer(data)); if (!string.IsNullOrEmpty(redisData.Type)) { type = redisData.Type.ResolveType(); } return(DeserializeInternal(type, redisData)); }