GoogleCloudAiplatformV1ModelContainerSpec.fromJson constructor

GoogleCloudAiplatformV1ModelContainerSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1ModelContainerSpec.fromJson(core.Map json_)
    : this(
        args: json_.containsKey('args')
            ? (json_['args'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        command: json_.containsKey('command')
            ? (json_['command'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        deploymentTimeout: json_.containsKey('deploymentTimeout')
            ? json_['deploymentTimeout'] as core.String
            : null,
        env: json_.containsKey('env')
            ? (json_['env'] as core.List)
                .map((value) => GoogleCloudAiplatformV1EnvVar.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        grpcPorts: json_.containsKey('grpcPorts')
            ? (json_['grpcPorts'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Port.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        healthProbe: json_.containsKey('healthProbe')
            ? GoogleCloudAiplatformV1Probe.fromJson(
                json_['healthProbe'] as core.Map<core.String, core.dynamic>)
            : null,
        healthRoute: json_.containsKey('healthRoute')
            ? json_['healthRoute'] as core.String
            : null,
        imageUri: json_.containsKey('imageUri')
            ? json_['imageUri'] as core.String
            : null,
        ports: json_.containsKey('ports')
            ? (json_['ports'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Port.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        predictRoute: json_.containsKey('predictRoute')
            ? json_['predictRoute'] as core.String
            : null,
        sharedMemorySizeMb: json_.containsKey('sharedMemorySizeMb')
            ? json_['sharedMemorySizeMb'] as core.String
            : null,
        startupProbe: json_.containsKey('startupProbe')
            ? GoogleCloudAiplatformV1Probe.fromJson(
                json_['startupProbe'] as core.Map<core.String, core.dynamic>)
            : null,
      );