WebsocketResponse.fromJson constructor

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

Implementation

factory WebsocketResponse.fromJson(Map<String, dynamic> json) {
  return WebsocketResponse(
    event: json['event'],
    data: json['data'] != null ? jsonDecode(json['data']) : null,
  );
}