sse_decode_my_error method
MyError
sse_decode_my_error(
- SseDeserializer deserializer
)
override
Implementation
@protected
MyError sse_decode_my_error(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_source = sse_decode_String(deserializer);
return MyError_Aria2(source: var_source);
case 1:
var var_value = sse_decode_String(deserializer);
var var_to = sse_decode_String(deserializer);
return MyError_Parse(value: var_value, to: var_to);
case 2:
var var_source = sse_decode_String(deserializer);
return MyError_WebsocketIo(source: var_source);
case 3:
var var_source = sse_decode_String(deserializer);
return MyError_Json(source: var_source);
case 4:
var var_message = sse_decode_String(deserializer);
return MyError_WebsocketClosed(message: var_message);
case 5:
var var_source = sse_decode_String(deserializer);
return MyError_ReconnectTaskTimeout(source: var_source);
default:
throw UnimplementedError('');
}
}