toEntry method

MapEntry<G, V> toEntry()

Converts this entry to a standard MapEntry for use in collections.

Developer Ergonomics & Human Legibility

This is useful when working with Map APIs:

final entry = Ontology.taxonomy.entry('Processor');
final mapEntry = entry.toEntry();
// mapEntry is MapEntry<Ontology<String>, String>

Implementation

MapEntry<G, V> toEntry() => MapEntry(key, value);