ResponseReceivedEvent.fromJson constructor
ResponseReceivedEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResponseReceivedEvent.fromJson(Map<String, dynamic> json) {
return ResponseReceivedEvent(
requestId: RequestId.fromJson(json['requestId'] as String),
loaderId: LoaderId.fromJson(json['loaderId'] as String),
timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
type: ResourceType.fromJson(json['type'] as String),
response: ResponseData.fromJson(json['response'] as Map<String, dynamic>),
hasExtraInfo: json['hasExtraInfo'] as bool? ?? false,
frameId:
json.containsKey('frameId')
? page.FrameId.fromJson(json['frameId'] as String)
: null,
);
}