GoogleCloudMlV1Version.fromJson constructor

GoogleCloudMlV1Version.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1Version.fromJson(core.Map json_)
    : this(
        acceleratorConfig: json_.containsKey('acceleratorConfig')
            ? GoogleCloudMlV1AcceleratorConfig.fromJson(
                json_['acceleratorConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        autoScaling: json_.containsKey('autoScaling')
            ? GoogleCloudMlV1AutoScaling.fromJson(
                json_['autoScaling'] as core.Map<core.String, core.dynamic>)
            : null,
        container: json_.containsKey('container')
            ? GoogleCloudMlV1ContainerSpec.fromJson(
                json_['container'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        deploymentUri: json_.containsKey('deploymentUri')
            ? json_['deploymentUri'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        explanationConfig: json_.containsKey('explanationConfig')
            ? GoogleCloudMlV1ExplanationConfig.fromJson(
                json_['explanationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        framework: json_.containsKey('framework')
            ? json_['framework'] as core.String
            : null,
        isDefault: json_.containsKey('isDefault')
            ? json_['isDefault'] as core.bool
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        lastMigrationModelId: json_.containsKey('lastMigrationModelId')
            ? json_['lastMigrationModelId'] as core.String
            : null,
        lastMigrationTime: json_.containsKey('lastMigrationTime')
            ? json_['lastMigrationTime'] as core.String
            : null,
        lastUseTime: json_.containsKey('lastUseTime')
            ? json_['lastUseTime'] as core.String
            : null,
        machineType: json_.containsKey('machineType')
            ? json_['machineType'] as core.String
            : null,
        manualScaling: json_.containsKey('manualScaling')
            ? GoogleCloudMlV1ManualScaling.fromJson(
                json_['manualScaling'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        packageUris: json_.containsKey('packageUris')
            ? (json_['packageUris'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        predictionClass: json_.containsKey('predictionClass')
            ? json_['predictionClass'] as core.String
            : null,
        pythonVersion: json_.containsKey('pythonVersion')
            ? json_['pythonVersion'] as core.String
            : null,
        requestLoggingConfig: json_.containsKey('requestLoggingConfig')
            ? GoogleCloudMlV1RequestLoggingConfig.fromJson(
                json_['requestLoggingConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        routes: json_.containsKey('routes')
            ? GoogleCloudMlV1RouteMap.fromJson(
                json_['routes'] as core.Map<core.String, core.dynamic>)
            : null,
        runtimeVersion: json_.containsKey('runtimeVersion')
            ? json_['runtimeVersion'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );