---
url: https://docs.moqtail.dev/ts/api/model/classes/LargestObject.md
---
# Class: LargestObject

The largest Location in the Track observed by the sending endpoint.
If omitted from a message, the sending endpoint has not published or
received any Objects in the Track.

## Implements

* [`Parameter`](../interfaces/Parameter.md)

## Constructors

### Constructor

> **new LargestObject**(`location`): `LargestObject`

#### Parameters

##### location

[`Location`](Location.md)

#### Returns

`LargestObject`

## Properties

### location

> `readonly` **location**: [`Location`](Location.md)

***

### TYPE

> `readonly` `static` **TYPE**: [`LargestObject`](../enumerations/MessageParameterType.md#largestobject) = `MessageParameterType.LargestObject`

## Methods

### toKeyValuePair()

> **toKeyValuePair**(): [`KeyValuePair`](KeyValuePair.md)

#### Returns

[`KeyValuePair`](KeyValuePair.md)

#### Implementation of

[`Parameter`](../interfaces/Parameter.md).[`toKeyValuePair`](../interfaces/Parameter.md#tokeyvaluepair)

***

### fromKeyValuePair()

> `static` **fromKeyValuePair**(`pair`): `LargestObject` | `undefined`

#### Parameters

##### pair

[`KeyValuePair`](KeyValuePair.md)

#### Returns

`LargestObject` | `undefined`
