Map<String, dynamic> toMap() { return { "gid": gid, "card": card?.toMap(), "type": type, "customerGid": customerGid, "saved": saved, }; }