Yes, Charles Dickens was very hard on lawyers, but he also had at least one lawyer hero (albeit a rather reluctant one, but definitely endearing rather than greedy or diabolical) and maybe more than one.
My favorite Dickens novel, “Our Mutual Friend,” has a nice-guy lawyer hero – 2 in fact – and as fabulous an array of characters as you’ll find in any Dickens’ writing.