V2modelsIntentInitialResponseSettingConditionalDefaultBranchNextStepIntent.fromMap constructor

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

Implementation

factory V2modelsIntentInitialResponseSettingConditionalDefaultBranchNextStepIntent.fromMap(Map<String, dynamic> map) {
  return V2modelsIntentInitialResponseSettingConditionalDefaultBranchNextStepIntent(
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    slots: (() { final guardedValue = map['slots']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<V2modelsIntentInitialResponseSettingConditionalDefaultBranchNextStepIntentSlot>(guardedValue, (value) => V2modelsIntentInitialResponseSettingConditionalDefaultBranchNextStepIntentSlot.fromMap((value as Map).cast<String, dynamic>()))); })(),
  );
}