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,
  );
}