PagespeedApiLoadingExperienceV5.fromJson constructor

PagespeedApiLoadingExperienceV5.fromJson(
  1. Map json_
)

Implementation

PagespeedApiLoadingExperienceV5.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        initialUrl: json_.containsKey('initial_url')
            ? json_['initial_url'] as core.String
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  UserPageLoadMetricV5.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        originFallback: json_.containsKey('origin_fallback')
            ? json_['origin_fallback'] as core.bool
            : null,
        overallCategory: json_.containsKey('overall_category')
            ? json_['overall_category'] as core.String
            : null,
      );