public static TestProject LoadTestProjectFromJson(string jsonStr) { SequenceJsonConvertor convertor = new SequenceJsonConvertor(); TestProject testProject = JsonConvert.DeserializeObject <TestProject>(jsonStr, convertor); ValidateTypeDatas(testProject); ModuleUtils.ValidateParent(testProject); return(testProject); }
public static SequenceGroup LoadSequenceGroupFromJson(string jsonStr) { SequenceJsonConvertor convertor = new SequenceJsonConvertor(); SequenceGroup sequenceGroup = JsonConvert.DeserializeObject <SequenceGroup>(jsonStr, convertor); ValidateTypeDatas(sequenceGroup); ModuleUtils.ValidateParent(sequenceGroup, null); return(sequenceGroup); }