toJson method
Implementation
Map<String, dynamic> toJson() {
final bucketName = this.bucketName;
final accessControlListConfiguration = this.accessControlListConfiguration;
final documentsMetadataConfiguration = this.documentsMetadataConfiguration;
final exclusionPatterns = this.exclusionPatterns;
final inclusionPatterns = this.inclusionPatterns;
final inclusionPrefixes = this.inclusionPrefixes;
return {
'BucketName': bucketName,
if (accessControlListConfiguration != null)
'AccessControlListConfiguration': accessControlListConfiguration,
if (documentsMetadataConfiguration != null)
'DocumentsMetadataConfiguration': documentsMetadataConfiguration,
if (exclusionPatterns != null) 'ExclusionPatterns': exclusionPatterns,
if (inclusionPatterns != null) 'InclusionPatterns': inclusionPatterns,
if (inclusionPrefixes != null) 'InclusionPrefixes': inclusionPrefixes,
};
}