GoogleCloudAiplatformV1QueryDeployedModelsResponse.fromJson constructor

GoogleCloudAiplatformV1QueryDeployedModelsResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1QueryDeployedModelsResponse.fromJson(core.Map json_)
    : this(
        deployedModelRefs: json_.containsKey('deployedModelRefs')
            ? (json_['deployedModelRefs'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1DeployedModelRef.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deployedModels: json_.containsKey('deployedModels')
            ? (json_['deployedModels'] as core.List)
                .map((value) => GoogleCloudAiplatformV1DeployedModel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        totalDeployedModelCount: json_.containsKey('totalDeployedModelCount')
            ? json_['totalDeployedModelCount'] as core.int
            : null,
        totalEndpointCount: json_.containsKey('totalEndpointCount')
            ? json_['totalEndpointCount'] as core.int
            : null,
      );