PrerenderAttemptCompletedEvent.fromJson constructor

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

Implementation

factory PrerenderAttemptCompletedEvent.fromJson(Map<String, dynamic> json) {
  return PrerenderAttemptCompletedEvent(
    initiatingFrameId: FrameId.fromJson(json['initiatingFrameId'] as String),
    prerenderingUrl: json['prerenderingUrl'] as String,
    finalStatus: PrerenderFinalStatus.fromJson(json['finalStatus'] as String),
    disallowedApiMethod: json.containsKey('disallowedApiMethod')
        ? json['disallowedApiMethod'] as String
        : null,
  );
}