Converts WearMessage to a JSON object.
Map<String, dynamic> toJson() => { "path": path, "data": data, 'id': id, 'node': node, };