Serializes the object to a map.
@override Map<String, dynamic> serialize() { return { "collection": collection, "expireOnUse": expireOnUse, "gatingTime": gatingTime }; }