AmpInspectionResult.fromJson constructor

AmpInspectionResult.fromJson(
  1. Map json_
)

Implementation

AmpInspectionResult.fromJson(core.Map json_)
    : this(
        ampIndexStatusVerdict: json_.containsKey('ampIndexStatusVerdict')
            ? json_['ampIndexStatusVerdict'] as core.String
            : null,
        ampUrl: json_.containsKey('ampUrl')
            ? json_['ampUrl'] as core.String
            : null,
        indexingState: json_.containsKey('indexingState')
            ? json_['indexingState'] as core.String
            : null,
        issues: json_.containsKey('issues')
            ? (json_['issues'] as core.List)
                .map((value) => AmpIssue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        lastCrawlTime: json_.containsKey('lastCrawlTime')
            ? json_['lastCrawlTime'] as core.String
            : null,
        pageFetchState: json_.containsKey('pageFetchState')
            ? json_['pageFetchState'] as core.String
            : null,
        robotsTxtState: json_.containsKey('robotsTxtState')
            ? json_['robotsTxtState'] as core.String
            : null,
        verdict: json_.containsKey('verdict')
            ? json_['verdict'] as core.String
            : null,
      );