public JsonTable Map(Table table) { if (table == null) { return null; } return new JsonTable { HeaderRow = this.tableRowMapper.Map(table.HeaderRow), DataRows = (table.DataRows ?? new List<TableRow>()).Select(this.tableRowMapper.Map).ToList() }; } }