public SloDataSource(Dictionary <object, object> dataSource) { Id = SloValidator.GetString(this.GetType().Name, dataSource, "id"); Type = SloValidator.GetString(this.GetType().Name, dataSource, "type"); //AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids")); try { AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids")); } catch (Exception) { AccountIds = new List <SloDataSourceAccountId>(); } }
public SloDataSource(Dictionary <object, object> dataSource) { Id = SloValidator.GetString(this.GetType().Name, dataSource, "id"); Type = SloValidator.GetString(this.GetType().Name, dataSource, "type"); AccountIds = SloDataSourceAccountId.ParseList(SloValidator.GetList(this.GetType().Name, dataSource, "accountids")); }