toString method
String representation of the model for debugging and logging.
This method provides a human-readable representation of the model instance, useful for debugging and logging purposes.
Default Implementation
The default implementation returns the JSON representation as a string. You can override this method to provide a more meaningful representation.
Example Override
@override
String toString() {
return 'User(id: $uid, name: $name, email: $email)';
}
Implementation
@override
String toString() {
return json.toString();
}