Map<String, dynamic> toMap() => { "unseen_count": unseenCount, "notifications": notifications == null ? [] : List<dynamic>.from(notifications!.map((x) => x)), };