the label in json format
const Description = new Description({ language: 'en', value: 'Douglas Adams' });
the language of the description
the value of the description
create a unique id for the Description
the id
this function checks if two descriptions are equal
the other Label
true if the descriptions are equal
const description1 = new Description({ language: 'en', value: 'foo' });
const description2 = new Description({ language: 'en', value: 'bar' });
description1.equals(description2); // false
Static
fromcreate a Description from a language and a value
the language of the Description
the value of the Description
the Description object
const Description = Description.fromString('en', 'Douglas Adams')
Generated using TypeDoc
class for descriptions