<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [primitives](./case-definition-dsl.matchers.primitives.md) &gt; [AnyNull](./case-definition-dsl.matchers.primitives.anynull.md)

## matchers.primitives.AnyNull class

Matches `null` (useful for languages like Java where `body: null` means no body, but you want to match a eg a json document that has the body `"null"`<!-- -->).

**Signature:**

```typescript
export declare class AnyNull extends AnyMatcherWithExample
```

**Extends:** AnyMatcherWithExample

## Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[(constructor)()](./case-definition-dsl.matchers.primitives.anynull._constructor_.md)

</td><td>

</td><td>

Matches `null` (useful for languages like Java where `body: null` means no body, but you want to match a eg a json document that has the body `"null"`<!-- -->).

</td></tr>
</tbody></table>

## Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

[toJSON()](./case-definition-dsl.matchers.primitives.anynull.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

</td></tr>
</tbody></table>
