Constructor for creating a Text object.
The constructor initializes a Text object with optional named parameters:
Text({ this.type, this.lang, this.start, this.end, this.value, });