PrerenderStatusUpdatedEvent.fromJson constructor
PrerenderStatusUpdatedEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PrerenderStatusUpdatedEvent.fromJson(Map<String, dynamic> json) {
return PrerenderStatusUpdatedEvent(
key: PreloadingAttemptKey.fromJson(json['key'] as Map<String, dynamic>),
status: PreloadingStatus.fromJson(json['status'] as String),
prerenderStatus:
json.containsKey('prerenderStatus')
? PrerenderFinalStatus.fromJson(json['prerenderStatus'] as String)
: null,
disallowedMojoInterface:
json.containsKey('disallowedMojoInterface')
? json['disallowedMojoInterface'] as String
: null,
mismatchedHeaders:
json.containsKey('mismatchedHeaders')
? (json['mismatchedHeaders'] as List)
.map(
(e) => PrerenderMismatchedHeaders.fromJson(
e as Map<String, dynamic>,
),
)
.toList()
: null,
);
}