serialize method

String serialize()

Serialize the message to a JSON string

Implementation

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