582.In cases where the sending of a notice of claim is required by the Cities and Towns Act (chapter C-19), the Municipal Code of Québec (chapter C-27.1) or a municipal charter as a prior condition to the institution of an action, a notice of claim given by one class member is valid for all class members, and insufficiency of the notice cannot be urged against the representative plaintiff.