public SampleStructureMap CreateSampleStructureMap(byte[] jsonInBytes)
{
var serializer = new DataContractJsonSerializer(typeof(SampleStructureMap));
SampleStructureMap structureMap = null;
using (Stream stream = Assets.Open("groups.json"))
{
using (MemoryStream ms = new MemoryStream(jsonInBytes))
{
structureMap = serializer.ReadObject(ms) as SampleStructureMap;
structureMap.Samples = new List<SampleModel>();
}
}
return structureMap;
}