otx.api.serialization.id_mapper#

This module contains the mapper for ID entities.

Classes

IDMapper()

This class maps an ID entity to a string, and vice versa.

class otx.api.serialization.id_mapper.IDMapper[source]#

Bases: object

This class maps an ID entity to a string, and vice versa.

static backward(instance: str) ID[source]#

Deserializes ID from str.

static forward(instance: ID) str[source]#

Serializes ID to str.