GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry.fromJson constructor

GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry.fromJson(core.Map _json)
    : this(
        confidenceThreshold: _json.containsKey('confidenceThreshold')
            ? (_json['confidenceThreshold'] as core.num).toDouble()
            : null,
        f1Score: _json.containsKey('f1Score')
            ? (_json['f1Score'] as core.num).toDouble()
            : null,
        f1ScoreAt1: _json.containsKey('f1ScoreAt1')
            ? (_json['f1ScoreAt1'] as core.num).toDouble()
            : null,
        f1ScoreAt5: _json.containsKey('f1ScoreAt5')
            ? (_json['f1ScoreAt5'] as core.num).toDouble()
            : null,
        precision: _json.containsKey('precision')
            ? (_json['precision'] as core.num).toDouble()
            : null,
        precisionAt1: _json.containsKey('precisionAt1')
            ? (_json['precisionAt1'] as core.num).toDouble()
            : null,
        precisionAt5: _json.containsKey('precisionAt5')
            ? (_json['precisionAt5'] as core.num).toDouble()
            : null,
        recall: _json.containsKey('recall')
            ? (_json['recall'] as core.num).toDouble()
            : null,
        recallAt1: _json.containsKey('recallAt1')
            ? (_json['recallAt1'] as core.num).toDouble()
            : null,
        recallAt5: _json.containsKey('recallAt5')
            ? (_json['recallAt5'] as core.num).toDouble()
            : null,
      );