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