BackForwardCacheNotUsedEvent.fromJson constructor

BackForwardCacheNotUsedEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BackForwardCacheNotUsedEvent.fromJson(Map<String, dynamic> json) {
  return BackForwardCacheNotUsedEvent(
    loaderId: network.LoaderId.fromJson(json['loaderId'] as String),
    frameId: FrameId.fromJson(json['frameId'] as String),
    notRestoredExplanations: (json['notRestoredExplanations'] as List)
        .map((e) => BackForwardCacheNotRestoredExplanation.fromJson(
            e as Map<String, dynamic>))
        .toList(),
    notRestoredExplanationsTree:
        json.containsKey('notRestoredExplanationsTree')
            ? BackForwardCacheNotRestoredExplanationTree.fromJson(
                json['notRestoredExplanationsTree'] as Map<String, dynamic>)
            : null,
  );
}