Meal maker project error

 const menu = {
  
  _courses: {
    appetizers:[],
    mains:[],
    desserts: []
  },
      
      get appetizers(){
        return this._courses.appetizers;
      },
        get mains(){
          return
          this._courses.mains;
        },
          get desserts(){
            return this._courses.desserts;
          },
            set appetizers(appetizers){
              this._courses.appetizers=appetizers;
            },
              set mains(mains){
                this._courses.mains=mains;
              },
                set desserts(desserts){
                  this._courses.desserts=desserts;
                },
             get  _courses(){
               return{
               appetizers: this.appetizers,
                 mains: 
                 this.mains,
                   desserts: this.desserts};
            }, 
              .addDishToCourse (courseName,dishName,dishPrice)
const dish ={
  name: dishName,
  price: dishPrice,
},
     return this._courses[courseName].push(dish); 
},
  .getRandomDishFromCourse(courseName){
    const dishes =
          this._courses[courseName];
    const randomIndex =
          Math.floor(Math.random()* dishes.length);
    return dishes[random.Index];
  },
    .generateRandomMeal: function(){
      const appetizer =
            this.getRandomDishFromCourses('appetizers');
      const mains = this.getRandomDishFromCourses('mains');
      const dessert = this.getRandomDishFromCourses('dessert');
      const totalPrice= appetizer.price + main.price + dessert.price;
      return `Your meal is ${appetizer.name}, ${main.name}, and ${dessert.name}. The price is $${totalPrice}.`;
    }
};
menu.addDishToCourse('appetizers', 'salad', 6.00);
menu.addDishToCourse('appetizers', 'wings', 5.00);
menu.addDishToCourse('appetizers', 'fries', 4.00);

menu.addDishToCourse('mains', 'steak', 15.00);
menu.addDishToCourse('mains', 'salmon', 10.00);
menu.addDishToCourse('mains', 'chicken', 10.00);

menu.addDishToCourse('dessert', 'baklava', 4.00);
menu.addDishToCourse('dessert', 'pie', 3.00);
menu.addDishToCourse('dessert', 'cheesecake', 6.00);

let meal= menu.generate.RandomMeal();
console.log(meal);

HERE IS MY ERROR MESSAGE:

home/ccuser/workspace/learn-javascript-objects-meal-maker/app.js:35
              .addDishToCourse (courseName,dishName,dishPrice)
              ^
SyntaxError: Unexpected token .
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:427:7)
    at startup (bootstrap_node.js:151:9)

I’ve been going over it all day but haven’t found the error.

I would recommend going back through the JavaScript Object lessons and focus on the syntax used. Also try to format your code better. It is easier to debug when indents are consistent through your code.