src/Factory/StructFactory.php
public static function createHashMap(array $items): HashMapInterface {
        $hashMapItems = [];

        foreach ($items as $itemKey => $itemValue) {
            $hashMapItems[] = new HashMapItem($itemKey, $itemValue);
        }

        return new HashMap($hashMapItems);
    }
public static function createHashMap(array $items): HashMapInterface {
        $hashMapItems = [];

        foreach ($items as $itemKey => $itemValue) {
            $hashMapItems[] = new HashMapItem($itemKey, $itemValue);
        }

        return new HashMap($hashMapItems);
    }
Creates a Instance of HashMap

[
'field_name' => 'field_value',
'field_name_next' => 'field_value_next',
]

Field names can be found in your pool configuration.

@param array $items
@return HashMapInterface