GoogleCloudAiplatformV1Part.fromJson constructor

GoogleCloudAiplatformV1Part.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Part.fromJson(core.Map json_)
  : this(
      codeExecutionResult: json_.containsKey('codeExecutionResult')
          ? GoogleCloudAiplatformV1CodeExecutionResult.fromJson(
              json_['codeExecutionResult']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      executableCode: json_.containsKey('executableCode')
          ? GoogleCloudAiplatformV1ExecutableCode.fromJson(
              json_['executableCode'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      fileData: json_.containsKey('fileData')
          ? GoogleCloudAiplatformV1FileData.fromJson(
              json_['fileData'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      functionCall: json_.containsKey('functionCall')
          ? GoogleCloudAiplatformV1FunctionCall.fromJson(
              json_['functionCall'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      functionResponse: json_.containsKey('functionResponse')
          ? GoogleCloudAiplatformV1FunctionResponse.fromJson(
              json_['functionResponse']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      inlineData: json_.containsKey('inlineData')
          ? GoogleCloudAiplatformV1Blob.fromJson(
              json_['inlineData'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      mediaResolution: json_.containsKey('mediaResolution')
          ? GoogleCloudAiplatformV1PartMediaResolution.fromJson(
              json_['mediaResolution'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      text: json_['text'] as core.String?,
      thought: json_['thought'] as core.bool?,
      thoughtSignature: json_['thoughtSignature'] as core.String?,
      videoMetadata: json_.containsKey('videoMetadata')
          ? GoogleCloudAiplatformV1VideoMetadata.fromJson(
              json_['videoMetadata'] as core.Map<core.String, core.dynamic>,
            )
          : null,
    );