Result.fromJson constructor

Result.fromJson(
  1. Map json_
)

Implementation

Result.fromJson(core.Map json_)
    : this(
        cacheId: json_.containsKey('cacheId')
            ? json_['cacheId'] as core.String
            : null,
        displayLink: json_.containsKey('displayLink')
            ? json_['displayLink'] as core.String
            : null,
        fileFormat: json_.containsKey('fileFormat')
            ? json_['fileFormat'] as core.String
            : null,
        formattedUrl: json_.containsKey('formattedUrl')
            ? json_['formattedUrl'] as core.String
            : null,
        htmlFormattedUrl: json_.containsKey('htmlFormattedUrl')
            ? json_['htmlFormattedUrl'] as core.String
            : null,
        htmlSnippet: json_.containsKey('htmlSnippet')
            ? json_['htmlSnippet'] as core.String
            : null,
        htmlTitle: json_.containsKey('htmlTitle')
            ? json_['htmlTitle'] as core.String
            : null,
        image: json_.containsKey('image')
            ? ResultImage.fromJson(
                json_['image'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.List)
                .map((value) => ResultLabels.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        link: json_.containsKey('link') ? json_['link'] as core.String : null,
        mime: json_.containsKey('mime') ? json_['mime'] as core.String : null,
        pagemap: json_.containsKey('pagemap')
            ? json_['pagemap'] as core.Map<core.String, core.dynamic>
            : null,
        snippet: json_.containsKey('snippet')
            ? json_['snippet'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );