GoogleCloudDatalabelingV1beta1Example.fromJson constructor
GoogleCloudDatalabelingV1beta1Example.fromJson(
- Map _json
Implementation
GoogleCloudDatalabelingV1beta1Example.fromJson(core.Map _json)
: this(
annotations: _json.containsKey('annotations')
? (_json['annotations'] as core.List)
.map((value) =>
GoogleCloudDatalabelingV1beta1Annotation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
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,
);