WebDetection.fromJson constructor

WebDetection.fromJson(
  1. Map json_
)

Implementation

WebDetection.fromJson(core.Map json_)
    : this(
        bestGuessLabels: json_.containsKey('bestGuessLabels')
            ? (json_['bestGuessLabels'] as core.List)
                .map((value) => WebLabel.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        fullMatchingImages: json_.containsKey('fullMatchingImages')
            ? (json_['fullMatchingImages'] as core.List)
                .map((value) => WebImage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pagesWithMatchingImages: json_.containsKey('pagesWithMatchingImages')
            ? (json_['pagesWithMatchingImages'] as core.List)
                .map((value) => WebPage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        partialMatchingImages: json_.containsKey('partialMatchingImages')
            ? (json_['partialMatchingImages'] as core.List)
                .map((value) => WebImage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        visuallySimilarImages: json_.containsKey('visuallySimilarImages')
            ? (json_['visuallySimilarImages'] as core.List)
                .map((value) => WebImage.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        webEntities: json_.containsKey('webEntities')
            ? (json_['webEntities'] as core.List)
                .map((value) => WebEntity.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );