parseSpecificCodec method

Codec parseSpecificCodec(
  1. Map<String, dynamic> metadata,
  2. String selectedKey
)

Implementation

Codec parseSpecificCodec(Map<String, dynamic> metadata, String selectedKey) {
  late Codec? codec = getCodec(selectedKey);
  if (codec != null) {
    return codec;
  }
  final value = metadata[selectedKey];

  codec = _parseCodec(
      metadata, selectedKey, value ?? selectedKey, <String>{}, true);

  _callProxyLoaders();
  if (getCodec(selectedKey) == null) {
    addCodec(selectedKey, codec);
  }
  return codec;
}