WebSocketCreatedEvent.fromJson constructor

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

Implementation

factory WebSocketCreatedEvent.fromJson(Map<String, dynamic> json) {
  return WebSocketCreatedEvent(
    requestId: RequestId.fromJson(json['requestId'] as String),
    url: json['url'] as String,
    initiator: json.containsKey('initiator')
        ? Initiator.fromJson(json['initiator'] as Map<String, dynamic>)
        : null,
  );
}