reply method
Implementation
void reply(Map<String, dynamic> data) {
_validateForReply();
try {
String jsonString = jsonEncode(data);
this.payload = Uint8List.fromList(utf8.encode(jsonString));
this.robomotion!.sendAppMsg(this);
} catch (e) {
print("Error encoding JSON payload: $e");
throw Exception("Failed to encode JSON payload");
}
}