toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bucketName = this.bucketName;
  final region = this.region;
  final syncFormat = this.syncFormat;
  final awsKMSKeyARN = this.awsKMSKeyARN;
  final destinationDataSharing = this.destinationDataSharing;
  final prefix = this.prefix;
  return {
    'BucketName': bucketName,
    'Region': region,
    'SyncFormat': syncFormat.toValue(),
    if (awsKMSKeyARN != null) 'AWSKMSKeyARN': awsKMSKeyARN,
    if (destinationDataSharing != null)
      'DestinationDataSharing': destinationDataSharing,
    if (prefix != null) 'Prefix': prefix,
  };
}