decode method

  1. @override
Map<K, V> decode(
  1. Input input
)
override

Implementation

@override
Map<K, V> decode(Input input) {
  final result = <K, V>{};

  final length = CompactCodec.codec.decode(input);

  for (var i = 0; i < length; i++) {
    final key = keyCodec.decode(input);
    final value = valueCodec.decode(input);
    result[key] = value;
  }
  return result;
}