core.Map<core.String, core.dynamic> toJson() => { if (collections != null) 'collections': collections!, if (database != null) 'database': database!, };