toData
Converts an object to its corresponding data representation.
Syntax
object.toData();
Returns
ObjectDataProps
- A promise that resolves to the object's data representation.
Example
const objectData = object.toData();
console.log('objectData', objectData);
Available on: Client Server