Implemented serializable interface and added serialversionUID variables for classes that were previously static classes only

GCP-10231

Reviewer : Mae Turiana