lookup method

V lookup(
  1. K key
)

Returns the item at the specified key in the map.

Implementation

V lookup(K key) {
  if (isSameType<K, Guid>()) {
    if (isSubtypeOfInspectable<V>()) {
      return _lookup_Guid_COMObject(key as Guid);
    }

    return _lookup_Guid_Object(key as Guid) as V;
  }

  if (isSameType<K, int>()) {
    return _lookup_Uint32_COMObject(key as int);
  }

  if (isSameType<K, PedometerStepKind>()) {
    return lookupByPedometerStepKind(key as PedometerStepKind) as V;
  }

  if (isSameType<K, String>()) {
    if (isSameType<V, String>()) {
      return _lookup_String_String(key as String) as V;
    }

    if (isSubtypeOfInspectable<V>()) {
      return _lookup_String_COMObject(key as String);
    }

    if (isSubtypeOfWinRTEnum<V>()) {
      return _lookup_String_enum(key as String);
    }

    return _lookup_String_Object(key as String) as V;
  }

  return _lookup_Object_Object(key as IInspectable) as V;
}