public function encodeDynamicField(DynamicField $dynamicField, Field $field)
    {
        return [
            'M' => [
                'name'                   => [self::TYPE_STRING => $dynamicField->getName()],
                $dynamicField->getKind() => $this->encodeValue($dynamicField->getValue(), $dynamicField->getField()),
            ],
        ];
    }
public function encodeDynamicField(DynamicField $dynamicField, Field $field)
    {
        return [
            'M' => [
                'name'                   => [self::TYPE_STRING => $dynamicField->getName()],
                $dynamicField->getKind() => $this->encodeValue($dynamicField->getValue(), $dynamicField->getField()),
            ],
        ];
    }
@param DynamicField $dynamicField
@param Field        $field

@return mixed