send it to the back-end
Sending classes over the wire requires extra effort - if you use JSON content type, your class will come as plain object to your back-end code. See numerous answers for this question telling how to convert JSON back to a class object so it's possible to call its methods.
But since the class in your question has no methods, it does not matter, unless the back-end code will perform runtime checks using instanceof
.
To avoid these problems, use interface which has only data members for representing objects for communicating with back-end.