GoogleCloudDocumentaiV1DocumentPageImageQualityScores.fromJson constructor

GoogleCloudDocumentaiV1DocumentPageImageQualityScores.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentPageImageQualityScores.fromJson(core.Map json_)
    : this(
        detectedDefects: json_.containsKey('detectedDefects')
            ? (json_['detectedDefects'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        qualityScore: json_.containsKey('qualityScore')
            ? (json_['qualityScore'] as core.num).toDouble()
            : null,
      );