public SchedulerModelValidationException(string response)
{
if (string.IsNullOrEmpty(response))
return;
object responseData = JsonObject.Parse(response);
ExceptionMessage = ((Dictionary<string, string>)responseData).ContainsKey(SchedulerConstants.ErrorMessage) ? (((Dictionary<string, string>)responseData)[SchedulerConstants.ErrorMessage]) : response;
if (((Dictionary<string, string>)responseData).ContainsKey(SchedulerConstants.Modelstate))
{
ValidationErrors(((Dictionary<string, string>)responseData)[SchedulerConstants.Modelstate]);
}
}