toString method

  1. @override
String toString()
override

Converts the model to a JSON string.

Returns:

  • A JSON string representation of the model.

Implementation

@override
String toString() {
  return jsonEncode(toJSON());
}