Generally the client should be able to assume the type based on the data model structure.
If your data model structure is ambiguous, you could add a "name" property to each of your custom objects to distinguish.
Just set a value in the initializer. (See https://developers.google.com/drive/realtime/build-model#registering_and_creating_custom_objects)