decodeKeyed method

  1. @override
KeyedDecoder decodeKeyed()
override

Decodes the data as a collection of key-value pairs. The pairs are decoded in order of appearance in the encoded data.

Implementation

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