export class GoalPlanAdd { Id: number; GoalName: string; VisibilityId: number; CategoryId: number; Metric: string; StartDate: string; DueDate: string; PercentageCompleted: number; StatusId: number; IsRelevant: boolean; IsAttainable: boolean; CreatedDate: string; CreatedBy: string; /** * Constructor * */ constructor(goalPlan?: any) { goalPlan = goalPlan || {}; this.Id = goalPlan.Id || 0; this.GoalName = goalPlan.GoalName || ''; this.VisibilityId = goalPlan.VisibilityId || 0; this.CategoryId = goalPlan.CategoryId || 0; this.Metric = goalPlan.Metric || ''; this.StartDate = goalPlan.StartDate || ''; this.DueDate = goalPlan.DueDate || ''; this.PercentageCompleted = goalPlan.PercentageCompleted || 0; this.StatusId = goalPlan.StatusId || 0; this.IsRelevant = goalPlan.IsRelevant || false; this.IsAttainable = goalPlan.IsAttainable || false; this.CreatedDate = goalPlan.CreatedDate || ''; this.CreatedBy = goalPlan.CreatedBy || ''; } }