Map<String, dynamic> toMap() { return { 'blocklist': blocklist, 'collectattr': collectattr.map((e) => e.toMap()).toList(), 'enabled': enabled, }; }