asObject<V> method
As object. Provide factory with 'Class.create' idiom.
Implementation
Map<T, V> asObject<V>(IUnmarshalFactory<V> objFactory)
{
// Deserialize keys using this object unmarshaller.
for (int i = 0; i < _nativeMap.size(); i += 2)
{
int valuePosition = i + 1; // even
_nativeMap.set(valuePosition, objFactory( _nativeMap.get(valuePosition) ) );
}
return _createDartMap<T, V>();
}