public static ComputeWeightMatrixResult FromJson(JsonArray json)
{
if (json == null)
return null;
ComputeWeightMatrixResult result = new ComputeWeightMatrixResult();
if (json.Count > 0)
{
result.WeightMatrix = new List<List<double>>();
for (int i = 0; i < json.Count; i++)
{
List<double> list = new List<double>();
for (int j = 0; j < json[i].Count; j++)
{
list.Add(json[i][j]);
}
result.WeightMatrix.Add(list);
}
}
return result;
}