toJson method

String toJson()

Convert error to JSON string

Implementation

String toJson() {
  return jsonEncode(toBayeux());
}