Categories.fromJson constructor

Categories.fromJson(
  1. Map json_
)

Implementation

Categories.fromJson(core.Map json_)
    : this(
        accessibility: json_.containsKey('accessibility')
            ? LighthouseCategoryV5.fromJson(
                json_['accessibility'] as core.Map<core.String, core.dynamic>)
            : null,
        bestPractices: json_.containsKey('best-practices')
            ? LighthouseCategoryV5.fromJson(json_['best-practices']
                as core.Map<core.String, core.dynamic>)
            : null,
        performance: json_.containsKey('performance')
            ? LighthouseCategoryV5.fromJson(
                json_['performance'] as core.Map<core.String, core.dynamic>)
            : null,
        pwa: json_.containsKey('pwa')
            ? LighthouseCategoryV5.fromJson(
                json_['pwa'] as core.Map<core.String, core.dynamic>)
            : null,
        seo: json_.containsKey('seo')
            ? LighthouseCategoryV5.fromJson(
                json_['seo'] as core.Map<core.String, core.dynamic>)
            : null,
      );