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