# Entity

Represents an object or resource in the Polymesh Ecosystem with its own set of properties and functionality

## Type parameters

▪ **UniqueIdentifiers**: *object*

## Hierarchy

* **Entity**

  ↳ [CheckpointSchedule](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)

  ↳ [CorporateAction](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/corporateaction)

  ↳ [Identity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/identity)

  ↳ [Account](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/account)

  ↳ [TickerReservation](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/tickerreservation)

  ↳ [SecurityToken](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/securitytoken)

  ↳ [AuthorizationRequest](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/authorizationrequest)

  ↳ [DefaultTrustedClaimIssuer](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/defaulttrustedclaimissuer)

  ↳ [Sto](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/sto)

  ↳ [Venue](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/venue)

  ↳ [Instruction](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/instruction)

  ↳ [Portfolio](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/portfolio)

  ↳ [Checkpoint](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpoint)

## Index

### Properties

* [context](#protected-context)
* [uuid](#uuid)

### Methods

* [isEqual](#isequal)
* [generateUuid](#static-generateuuid)
* [isUniqueIdentifiers](#static-isuniqueidentifiers)
* [unserialize](#static-unserialize)

## Properties

### `Protected` context

• **context**: [*Context*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/context)

*Defined in* [*src/api/entities/Entity.ts:48*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L48)

### uuid

• **uuid**: *string*

*Defined in* [*src/api/entities/Entity.ts:46*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L46)

## Methods

### isEqual

▸ **isEqual**(`entity`: [Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/entity)‹object›): *boolean*

*Defined in* [*src/api/entities/Entity.ts:61*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L61)

Whether this Entity is the same as another one

**Parameters:**

| Name     | Type                                                                                                    |
| -------- | ------------------------------------------------------------------------------------------------------- |
| `entity` | [Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/entity)‹object› |

**Returns:** *boolean*

### `Static` generateUuid

▸ **generateUuid**‹**Identifiers**›(`identifiers`: Identifiers): *string*

*Defined in* [*src/api/entities/Entity.ts:14*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L14)

Generate the Entity's UUID from its identifying properties

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name          | Type        | Description |
| ------------- | ----------- | ----------- |
| `identifiers` | Identifiers |             |

**Returns:** *string*

### `Static` isUniqueIdentifiers

▸ **isUniqueIdentifiers**(`identifiers`: unknown): *boolean*

*Defined in* [*src/api/entities/Entity.ts:42*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L42)

Typeguard that checks whether the object passed corresponds to the unique identifiers of the class. Must be overridden

**Parameters:**

| Name          | Type    | Description          |
| ------------- | ------- | -------------------- |
| `identifiers` | unknown | object to type check |

**Returns:** *boolean*

### `Static` unserialize

▸ **unserialize**‹**Identifiers**›(`serialized`: string): *Identifiers*

*Defined in* [*src/api/entities/Entity.ts:23*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L23)

Unserialize a UUID into its Unique Identifiers

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| `serialized` | string | UUID to unserialize |

**Returns:** *Identifiers*
