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