Map<String, dynamic> toMap() => { "roots": roots == null ? null : List<dynamic>.from(roots!.map((x) => x)), };