toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bucketARN = this.bucketARN;
  final roleARN = this.roleARN;
  final bufferingHints = this.bufferingHints;
  final cloudWatchLoggingOptions = this.cloudWatchLoggingOptions;
  final compressionFormat = this.compressionFormat;
  final encryptionConfiguration = this.encryptionConfiguration;
  final errorOutputPrefix = this.errorOutputPrefix;
  final prefix = this.prefix;
  return {
    'BucketARN': bucketARN,
    'RoleARN': roleARN,
    if (bufferingHints != null) 'BufferingHints': bufferingHints,
    if (cloudWatchLoggingOptions != null)
      'CloudWatchLoggingOptions': cloudWatchLoggingOptions,
    if (compressionFormat != null)
      'CompressionFormat': compressionFormat.toValue(),
    if (encryptionConfiguration != null)
      'EncryptionConfiguration': encryptionConfiguration,
    if (errorOutputPrefix != null) 'ErrorOutputPrefix': errorOutputPrefix,
    if (prefix != null) 'Prefix': prefix,
  };
}