Firestore/src/ValueMapper.php
private function encodeAssociativeArrayValue(array $value)
    {
        $out = [];
        foreach ($value as $key => $item) {
            $out[$key] = $this->encodeValue($item);
        }

        return ['mapValue' => ['fields' => $out]];
    }
private function encodeAssociativeArrayValue(array $value)
    {
        $out = [];
        foreach ($value as $key => $item) {
            $out[$key] = $this->encodeValue($item);
        }

        return ['mapValue' => ['fields' => $out]];
    }
private function encodeAssociativeArrayValue ( array $ value ) { $ out = [ ] ; foreach ( $ value as $ key => $ item ) { $ out [ $ key ] = $ this -> encodeValue ( $ item ) ; } return [ 'mapValue' => [ 'fields' => $ out ] ] ; }
Encode an associative array as a Firestore Map value.

@codingStandardsIgnoreStart
@param array $value
@return array [MapValue](https://firebase.google.com/docs/firestore/reference/rpc/google.firestore.v1beta1#google.firestore.v1beta1.MapValue)
@codingStandardsIgnoreEnd
Encode an associative array as a Firestore Map value .