GoogleCloudDatalabelingV1beta1DataItem.fromJson constructor

GoogleCloudDatalabelingV1beta1DataItem.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1DataItem.fromJson(core.Map _json)
    : this(
        imagePayload: _json.containsKey('imagePayload')
            ? GoogleCloudDatalabelingV1beta1ImagePayload.fromJson(
                _json['imagePayload'] as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        textPayload: _json.containsKey('textPayload')
            ? GoogleCloudDatalabelingV1beta1TextPayload.fromJson(
                _json['textPayload'] as core.Map<core.String, core.dynamic>)
            : null,
        videoPayload: _json.containsKey('videoPayload')
            ? GoogleCloudDatalabelingV1beta1VideoPayload.fromJson(
                _json['videoPayload'] as core.Map<core.String, core.dynamic>)
            : null,
      );