GoogleCloudDatalabelingV1beta1Instruction.fromJson constructor

GoogleCloudDatalabelingV1beta1Instruction.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1Instruction.fromJson(core.Map _json)
    : this(
        blockingResources: _json.containsKey('blockingResources')
            ? (_json['blockingResources'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        csvInstruction: _json.containsKey('csvInstruction')
            ? GoogleCloudDatalabelingV1beta1CsvInstruction.fromJson(
                _json['csvInstruction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        dataType: _json.containsKey('dataType')
            ? _json['dataType'] as core.String
            : null,
        description: _json.containsKey('description')
            ? _json['description'] as core.String
            : null,
        displayName: _json.containsKey('displayName')
            ? _json['displayName'] as core.String
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        pdfInstruction: _json.containsKey('pdfInstruction')
            ? GoogleCloudDatalabelingV1beta1PdfInstruction.fromJson(
                _json['pdfInstruction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: _json.containsKey('updateTime')
            ? _json['updateTime'] as core.String
            : null,
      );