BackForwardCacheNotRestoredExplanation.fromJson constructor

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

Implementation

factory BackForwardCacheNotRestoredExplanation.fromJson(
    Map<String, dynamic> json) {
  return BackForwardCacheNotRestoredExplanation(
    type: BackForwardCacheNotRestoredReasonType.fromJson(
        json['type'] as String),
    reason:
        BackForwardCacheNotRestoredReason.fromJson(json['reason'] as String),
    context: json.containsKey('context') ? json['context'] as String : null,
    details: json.containsKey('details')
        ? (json['details'] as List)
            .map((e) => BackForwardCacheBlockingDetails.fromJson(
                e as Map<String, dynamic>))
            .toList()
        : null,
  );
}