The day after her release, the district attorney decided not to pursue charges. But Patterson still owes the bail bonds company. Criminal justice reformers and lawyers at a nonprofit legal clinic in the District say that is unconstitutionally unfair.

The lawyers have filed a class action lawsuit on behalf of Patterson, Rianna Buffin and other jail inmates who argue that San Francisco and California’s bail system unconstitutionally treats the poor and the wealthy differently.

Wealthy suspects can put up their houses or other valuable assets — or simply write checks — to post bail and stay out of jail until their cases are resolved. Poorer suspects are not so lucky. Many remain behind bars or pay nonrefundable fees to bail bonds companies.

San Francisco public defender Chesa Boudin says some of his clients who cannot afford to post bail plead guilty to minor charges for crimes they did not commit so they can leave jail.

Boudin represented Buffin, 19, after her arrest on a charge of grand theft in October. Buffin could not afford to post the $30,000 bail or pay a bond company a $3,000 fee and so contemplated pleading guilty in exchange for a quick release from jail, even though she says her only crime was being with the “wrong people at the wrong place at the wrong time.”

Fortunately, the district attorney declined to charge Buffin, and she was released after being held for three days.

“My family was worried,” said Buffin, who lost her $10.50-an-hour baggage handler job at the Oakland International Airport after her arrest.

The lawsuit filed by Equal Justice Under Law in San Francisco federal court in October seeks to abolish the cash bail system in the city, state and country. It is the ninth lawsuit the nonprofit civil rights organization has filed in seven states.

“The bail system in most states is a two-tiered system,” said center founder Phil Telfeyan. “One for the wealthy and one for everyone else.”

The center has settled four lawsuits, persuading smaller jails in states in the South to do away with cash bail requirements for most charges.

Telfeyan said a win in California could add momentum to the center’s goal to rid the country of the cash bail system, which the lawyers say is used by most county jails in all 50 states. The federal system usually allows nonviolent suspects to go free without bail pending trial and denies bail to suspects in serious and violent crimes.

“The country watches what happens in California,” said Telfeyan, a former Department of Justice attorney who founded the Washington organization in 2013 with a partner and the first-ever grant from the Harvard Law School Public Service Venture Fund.

Telfeyan said he is not trying to destroy the classic, neon-advertising bail bonding industry, but he conceded that the business model would become obsolete if he convinces courts that the cash bail system is unconstitutional.