sse_decode_my_value method
MyValue
sse_decode_my_value(
- SseDeserializer deserializer
)
override
Implementation
@protected
MyValue sse_decode_my_value(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_field0 = sse_decode_bool(deserializer);
return MyValue_Bool(var_field0);
case 1:
var var_field0 = sse_decode_String(deserializer);
return MyValue_String(var_field0);
case 2:
var var_field0 = sse_decode_list_my_value(deserializer);
return MyValue_Array(var_field0);
default:
throw UnimplementedError('');
}
}