decode method

  1. @override
dynamic decode(
  1. Uint8List data,
  2. List typeParams
)
override

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);
}