1. If you see an example here, please use it strictly "as it is" first to prevent unnecessary mistakes like typos
2. Please send the messages from B4J (as the example provides)
3. Why via B4J? So you can manage what you send and you can see/check what the Google api returns (like "successful", "fail" and a reason)
4. Learn what a map is (take a search)
5. As you will see, the line
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
is trying to get "title" and "body". I assume that what you send via console does not contain a map with these keys. So it's NULL.
6. If you get errors or you have questions, please post your code AND logs together. You could have posted the output of these line (from the example)
Log($"Message data: ${Message.GetData}"$)
It contains the map of the message which was sent. If you take a look at it, you will not find "title" and "body". The next logical step is to change the map which was sent or the code of the receiver.