Converts the User instance into a JSON string.
This method uses toMap internally for the conversion.
String toJson() { return jsonEncode(toMap()); }