A class-action lawsuit against Otter Products, which is laying off workers, alleges that it failed to maintain its consumer warranty on its cell phone and tablet protection products.