WebSocketMessage.fromJson constructor

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

Implementation

WebSocketMessage.fromJson(Map<String, dynamic> json)
    : code = json['code'] as int,
      data = json['data'],
      type = MessageActionExtension.parse(json['type'] as int),
      msg = json['msg'] as String?,
      timestamp = json['timestamp'] as int?;