sse_decode_my_notification method
MyNotification
sse_decode_my_notification(
- SseDeserializer deserializer
)
override
Implementation
@protected
MyNotification sse_decode_my_notification(SseDeserializer deserializer) {
// Codec=Sse (Serialization based), see doc to use other codecs
var tag_ = sse_decode_i_32(deserializer);
switch (tag_) {
case 0:
var var_gid = sse_decode_String(deserializer);
var var_event = sse_decode_my_event(deserializer);
return MyNotification_Aria2(gid: var_gid, event: var_event);
case 1:
return MyNotification_WebSocketConnected();
case 2:
return MyNotification_WebsocketClosed();
default:
throw UnimplementedError('');
}
}