The toJSON() method is a serializer; it returns a JSON representation of the PerformanceEntry object.
toJSON()
MDN Reference