Map<String, dynamic> toMap() => { 'configs': configs .map((k, v) => MapEntry(k, v.map((c) => c.toMap()).toList())), 'useNth': useNth, };