decode method

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

Implementation

@override
RuntimeApiMetadataV16 decode(Input input) {
  final name = StrCodec.codec.decode(input);
  final methods = SequenceCodec(RuntimeApiMethodMetadataV16.codec).decode(input);
  final docs = SequenceCodec(StrCodec.codec).decode(input);
  final version = CompactCodec.codec.decode(input);
  final deprecationInfo = ItemDeprecationInfo.codec.decode(input);

  return RuntimeApiMetadataV16(
    name: name,
    methods: methods,
    docs: docs,
    version: version,
    deprecationInfo: deprecationInfo,
  );
}