WebSocketFrameReceivedEvent.fromJson constructor

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

Implementation

factory WebSocketFrameReceivedEvent.fromJson(Map<String, dynamic> json) {
  return WebSocketFrameReceivedEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    timestamp: MonotonicTime.fromJson(json['timestamp'] as num),
    response: WebSocketFrame.fromJson(
      json['response'] as Map<String, dynamic>,
    ),
  );
}