GoogleCloudDatalabelingV1beta1Row.fromJson constructor

GoogleCloudDatalabelingV1beta1Row.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1Row.fromJson(core.Map _json)
    : this(
        annotationSpec: _json.containsKey('annotationSpec')
            ? GoogleCloudDatalabelingV1beta1AnnotationSpec.fromJson(
                _json['annotationSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        entries: _json.containsKey('entries')
            ? (_json['entries'] as core.List)
                .map((value) =>
                    GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );