decode method

  1. @override
TypeParameter decode(
  1. Input input
)
override

Implementation

@override
TypeParameter decode(Input input) {
  // Decode parameter name
  final name = StrCodec.codec.decode(input);

  // Decode optional type ID
  final type = OptionCodec(CompactCodec.codec).decode(input);

  return TypeParameter(name: name, type: type);
}