GoogleCloudDatalabelingV1beta1ExampleComparison.fromJson constructor

GoogleCloudDatalabelingV1beta1ExampleComparison.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1ExampleComparison.fromJson(core.Map _json)
    : this(
        groundTruthExample: _json.containsKey('groundTruthExample')
            ? GoogleCloudDatalabelingV1beta1Example.fromJson(
                _json['groundTruthExample']
                    as core.Map<core.String, core.dynamic>)
            : null,
        modelCreatedExamples: _json.containsKey('modelCreatedExamples')
            ? (_json['modelCreatedExamples'] as core.List)
                .map((value) =>
                    GoogleCloudDatalabelingV1beta1Example.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );