toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final storageType = this.storageType;
  final associationId = this.associationId;
  final kinesisFirehoseConfig = this.kinesisFirehoseConfig;
  final kinesisStreamConfig = this.kinesisStreamConfig;
  final kinesisVideoStreamConfig = this.kinesisVideoStreamConfig;
  final s3Config = this.s3Config;
  return {
    'StorageType': storageType.toValue(),
    if (associationId != null) 'AssociationId': associationId,
    if (kinesisFirehoseConfig != null)
      'KinesisFirehoseConfig': kinesisFirehoseConfig,
    if (kinesisStreamConfig != null)
      'KinesisStreamConfig': kinesisStreamConfig,
    if (kinesisVideoStreamConfig != null)
      'KinesisVideoStreamConfig': kinesisVideoStreamConfig,
    if (s3Config != null) 'S3Config': s3Config,
  };
}