toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final catalog = this.catalog;
  final database = this.database;
  final outputFormat = this.outputFormat;
  final outputS3Uri = this.outputS3Uri;
  final queryString = this.queryString;
  final kmsKeyId = this.kmsKeyId;
  final outputCompression = this.outputCompression;
  final workGroup = this.workGroup;
  return {
    'Catalog': catalog,
    'Database': database,
    'OutputFormat': outputFormat.toValue(),
    'OutputS3Uri': outputS3Uri,
    'QueryString': queryString,
    if (kmsKeyId != null) 'KmsKeyId': kmsKeyId,
    if (outputCompression != null)
      'OutputCompression': outputCompression.toValue(),
    if (workGroup != null) 'WorkGroup': workGroup,
  };
}