GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson constructor

GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1HumanAnnotationConfig.fromJson(core.Map _json)
    : this(
        annotatedDatasetDescription:
            _json.containsKey('annotatedDatasetDescription')
                ? _json['annotatedDatasetDescription'] as core.String
                : null,
        annotatedDatasetDisplayName:
            _json.containsKey('annotatedDatasetDisplayName')
                ? _json['annotatedDatasetDisplayName'] as core.String
                : null,
        contributorEmails: _json.containsKey('contributorEmails')
            ? (_json['contributorEmails'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        instruction: _json.containsKey('instruction')
            ? _json['instruction'] as core.String
            : null,
        labelGroup: _json.containsKey('labelGroup')
            ? _json['labelGroup'] as core.String
            : null,
        languageCode: _json.containsKey('languageCode')
            ? _json['languageCode'] as core.String
            : null,
        questionDuration: _json.containsKey('questionDuration')
            ? _json['questionDuration'] as core.String
            : null,
        replicaCount: _json.containsKey('replicaCount')
            ? _json['replicaCount'] as core.int
            : null,
        userEmailAddress: _json.containsKey('userEmailAddress')
            ? _json['userEmailAddress'] as core.String
            : null,
      );