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