How can I fix the 'Missing field aggregateRating' error in Google search console?

Alex.

I tired copying the code and pasting it into the sections/product-template.liquid and when re-running the Google search console am still encountering the same issue, Missing field “aggregateRating”.