public function asArray()
    {
        return [
            $this->type->getName() => Arrays::arrayMergeRecursiveOverrule([
                'dynamic_templates' => $this->getDynamicTemplates(),
                'properties' => $this->getProperties(),
            ], $this->fullMapping),
        ];
    }
public function asArray()
    {
        return [
            $this->type->getName() => Arrays::arrayMergeRecursiveOverrule([
                'dynamic_templates' => $this->getDynamicTemplates(),
                'properties' => $this->getProperties(),
            ], $this->fullMapping),
        ];
    }
public function asArray ( ) { return [ $ this -> type -> getName ( ) => Arrays :: arrayMergeRecursiveOverrule ( [ 'dynamic_templates' => $ this -> getDynamicTemplates ( ) , 'properties' => $ this -> getProperties ( ) , ] , $ this -> fullMapping ) , ] ; }
Return the mapping which would be sent to the server as array

@return array
Return the mapping which would be sent to the server as array