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