It is a common myth that dogs stop eating before giving birth. While some dogs may eat less in the days leading up to labor, it is not a universal sign.
Individual variation, stress, and hormones affect appetite. Once labor starts, dogs usually stop eating entirely to focus on giving birth.
Observe your dog's behavior, don't force eating, keep her hydrated, and consult your veterinarian if concerned about eating habits during pregnancy.