decode method

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

Implementation

@override
PortableType decode(Input input) {
  // Decode type ID (compact encoded)
  final id = CompactCodec.codec.decode(input);

  // Decode type definition
  final type = PortableTypeDef.codec.decode(input);

  return PortableType(id: id, type: type);
}