I am using the Ionic 3 framework.
I am trying to save an object to Firebase, but not all the properties are being saved.
The string properties are saved, but the Map and custom objects (Event) are not being saved.
Here are the objects with the properties I'm trying to save:
=============================================================
export class Room extends WorldObject {
private entityList: Array<Entity>;
private itemList: Array<Item>;
private directionMap: Map<string, number>;
private onEnterEvent: Event;
private onExitEvent: Event;
private actionEventMap: Map<string, Map<string, Event>>;
=============================================================
=============================================================
export class Event {
private actionScript: string;
private message: string;
=============================================================
So, again, the string and Array properties are saved, but the properties of type "Map" or "Event" are not being saved to firebase.
What could be the issue?
Does Firebase not like custom typescript objects?
Am I supposed to convert them somehow before saving? I shouldn't have to.
Any help is appreciated