toJSON method

String toJSON()

Returns the report data as a string in JSON format.

Implementation

String toJSON() {
  return jsonEncode(asMap());
}