AppVersionSnapshotAppAudioProcessingConfig.fromMap constructor

AppVersionSnapshotAppAudioProcessingConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory AppVersionSnapshotAppAudioProcessingConfig.fromMap(Map<String, dynamic> map) {
  return AppVersionSnapshotAppAudioProcessingConfig(
    ambientSoundConfigs: (() { final guardedValue = map['ambientSoundConfigs']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<AppVersionSnapshotAppAudioProcessingConfigAmbientSoundConfig>(guardedValue, (value) => AppVersionSnapshotAppAudioProcessingConfigAmbientSoundConfig.fromMap((value as Map).cast<String, dynamic>()))); })(),
    bargeInConfigs: (() { final guardedValue = map['bargeInConfigs']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<AppVersionSnapshotAppAudioProcessingConfigBargeInConfig>(guardedValue, (value) => AppVersionSnapshotAppAudioProcessingConfigBargeInConfig.fromMap((value as Map).cast<String, dynamic>()))); })(),
    inactivityTimeout: (() { final guardedValue = map['inactivityTimeout']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    synthesizeSpeechConfigs: (() { final guardedValue = map['synthesizeSpeechConfigs']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<AppVersionSnapshotAppAudioProcessingConfigSynthesizeSpeechConfig>(guardedValue, (value) => AppVersionSnapshotAppAudioProcessingConfigSynthesizeSpeechConfig.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}