decode method
Implementation
@override
dynamic decode(data, typeParams) {
final typeMap = <String, dynamic>{};
for (var i = 0; i < generics.length; i++) {
typeMap[generics[i]] = typeParams[i];
}
return decodeRaw(BcsReader(data), typeParams, typeMap);
}