toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final destinationSchema = this.destinationSchema;
  final name = this.name;
  final kinesisFirehoseOutput = this.kinesisFirehoseOutput;
  final kinesisStreamsOutput = this.kinesisStreamsOutput;
  final lambdaOutput = this.lambdaOutput;
  return {
    'DestinationSchema': destinationSchema,
    'Name': name,
    if (kinesisFirehoseOutput != null)
      'KinesisFirehoseOutput': kinesisFirehoseOutput,
    if (kinesisStreamsOutput != null)
      'KinesisStreamsOutput': kinesisStreamsOutput,
    if (lambdaOutput != null) 'LambdaOutput': lambdaOutput,
  };
}