decode method
Decode a SCALE encoded value
Implementation
dynamic decode(String type, Input input) {
final codec = registry.getCodec(type);
if (codec == null) {
throw Exception('Codec not found for type: $type');
}
final value = codec.decode(input);
return value;
}