AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPart.fromMap constructor

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

Implementation

factory AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPart.fromMap(Map<String, dynamic> map) {
  return AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPart(
    codeExecutionResult: (() { final guardedValue = map['codeExecutionResult']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartCodeExecutionResult.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    executableCode: (() { final guardedValue = map['executableCode']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartExecutableCode.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    fileData: (() { final guardedValue = map['fileData']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartFileData.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    functionCall: (() { final guardedValue = map['functionCall']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartFunctionCall.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    functionResponse: (() { final guardedValue = map['functionResponse']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartFunctionResponse.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    inlineData: (() { final guardedValue = map['inlineData']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartInlineData.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
    text: (() { final guardedValue = map['text']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    thought: (() { final guardedValue = map['thought']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    videoMetadata: (() { final guardedValue = map['videoMetadata']; if (guardedValue == null) return null; return pulumi.Input.fromValue(AiReasoningEngineContextSpecMemoryBankConfigCustomizationConfigGenerateMemoriesExampleConversationSourceEventContentPartVideoMetadata.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
  );
}