WebSocketHandshakeResponseReceivedEvent.fromJson constructor

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

Implementation

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