toJSON method

String toJSON()

Implementation

String toJSON() {
  return json.encode([joinRef, ref, topic, event, payload]);
}