WebSocketCreatedEvent.fromJson constructor
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,
);
}