toJson method
dynamic
toJson()
Implementation
toJson() {
switch (type) {
case ClientMsgType.kEvent:
return _eventToJson();
case ClientMsgType.kReq:
return _reqToJson();
case ClientMsgType.kClose:
return _closeToJson();
case ClientMsgType.kAuth:
return _eventToJson();
case ClientMsgType.kCount:
throw Exception("COUNT is not implemented yet");
}
}