Map<String, dynamic> toJson() => {'type': type, 'groupIds': [...groupIds], 'articleIds': [...articleIds]};