toJSON method

String toJSON()

Serializes the Merkle Block to a JSON string

Implementation

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