V2modelsIntentState.fromMap constructor

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

Implementation

factory V2modelsIntentState.fromMap(Map<String, dynamic> map) {
  return V2modelsIntentState(
    botId: (() { final guardedValue = map['botId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    botVersion: (() { final guardedValue = map['botVersion']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    closingSetting: (() { final guardedValue = map['closingSetting']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentClosingSetting.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    confirmationSetting: (() { final guardedValue = map['confirmationSetting']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentConfirmationSetting.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    creationDateTime: (() { final guardedValue = map['creationDateTime']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    dialogCodeHook: (() { final guardedValue = map['dialogCodeHook']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentDialogCodeHook.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    fulfillmentCodeHook: (() { final guardedValue = map['fulfillmentCodeHook']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentFulfillmentCodeHook.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    initialResponseSetting: (() { final guardedValue = map['initialResponseSetting']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentInitialResponseSetting.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    inputContexts: (() { final guardedValue = map['inputContexts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<V2modelsIntentInputContext>(guardedValue, (value) => V2modelsIntentInputContext.fromMap((value as Map).cast<String, dynamic>()))); })(),
    intentId: (() { final guardedValue = map['intentId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    kendraConfiguration: (() { final guardedValue = map['kendraConfiguration']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentKendraConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    lastUpdatedDateTime: (() { final guardedValue = map['lastUpdatedDateTime']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    localeId: (() { final guardedValue = map['localeId']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    outputContexts: (() { final guardedValue = map['outputContexts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<V2modelsIntentOutputContext>(guardedValue, (value) => V2modelsIntentOutputContext.fromMap((value as Map).cast<String, dynamic>()))); })(),
    parentIntentSignature: (() { final guardedValue = map['parentIntentSignature']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    qnaIntentConfiguration: (() { final guardedValue = map['qnaIntentConfiguration']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentQnaIntentConfiguration.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    sampleUtterances: (() { final guardedValue = map['sampleUtterances']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<V2modelsIntentSampleUtterance>(guardedValue, (value) => V2modelsIntentSampleUtterance.fromMap((value as Map).cast<String, dynamic>()))); })(),
    slotPriorities: (() { final guardedValue = map['slotPriorities']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<V2modelsIntentSlotPriority>(guardedValue, (value) => V2modelsIntentSlotPriority.fromMap((value as Map).cast<String, dynamic>()))); })(),
    timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(V2modelsIntentTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}