GoogleCloudAiplatformV1DataLabelingJob.fromJson constructor

GoogleCloudAiplatformV1DataLabelingJob.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1DataLabelingJob.fromJson(core.Map json_)
    : this(
        activeLearningConfig: json_.containsKey('activeLearningConfig')
            ? GoogleCloudAiplatformV1ActiveLearningConfig.fromJson(
                json_['activeLearningConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        annotationLabels: json_.containsKey('annotationLabels')
            ? (json_['annotationLabels']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        currentSpend: json_.containsKey('currentSpend')
            ? GoogleTypeMoney.fromJson(
                json_['currentSpend'] as core.Map<core.String, core.dynamic>)
            : null,
        datasets: json_.containsKey('datasets')
            ? (json_['datasets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        encryptionSpec: json_.containsKey('encryptionSpec')
            ? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
                json_['encryptionSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : null,
        inputs: json_.containsKey('inputs') ? json_['inputs'] : null,
        inputsSchemaUri: json_.containsKey('inputsSchemaUri')
            ? json_['inputsSchemaUri'] as core.String
            : null,
        instructionUri: json_.containsKey('instructionUri')
            ? json_['instructionUri'] as core.String
            : null,
        labelerCount: json_.containsKey('labelerCount')
            ? json_['labelerCount'] as core.int
            : null,
        labelingProgress: json_.containsKey('labelingProgress')
            ? json_['labelingProgress'] as core.int
            : 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,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        specialistPools: json_.containsKey('specialistPools')
            ? (json_['specialistPools'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );