GoogleCloudAiplatformV1Part.fromJson constructor

GoogleCloudAiplatformV1Part.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Part.fromJson(core.Map json_)
    : this(
        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,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        videoMetadata: json_.containsKey('videoMetadata')
            ? GoogleCloudAiplatformV1VideoMetadata.fromJson(
                json_['videoMetadata'] as core.Map<core.String, core.dynamic>)
            : null,
      );