decodeMapped method

  1. @override
MappedDecoder decodeMapped()
override

Decodes the data as a collection of key-value pairs. The values are accessed and decoded based on the provided key.

Implementation

@override
MappedDecoder decodeMapped() {
  final key = keys.current;
  return decoder.decodeMapped(key is String ? key : '', id: key is int ? key : null);
}