SiteSummaryResponse.fromJson constructor

SiteSummaryResponse.fromJson(
  1. Map json_
)

Implementation

SiteSummaryResponse.fromJson(core.Map json_)
    : this(
        desktopSummary: json_.containsKey('desktopSummary')
            ? PlatformSummary.fromJson(json_['desktopSummary']
                as core.Map<core.String, core.dynamic>)
            : null,
        mobileSummary: json_.containsKey('mobileSummary')
            ? PlatformSummary.fromJson(
                json_['mobileSummary'] as core.Map<core.String, core.dynamic>)
            : null,
        reviewedSite: json_.containsKey('reviewedSite')
            ? json_['reviewedSite'] as core.String
            : null,
      );