Represents a token in MText parsing with its type, context, and data
Create a new MTextToken
The token type
The MText context at the time of token creation
The token data (varies by type)
Get the token type name as a string
The token type name
Convert token to a plain object for serialization
Plain object representation
Create a string representation of the token
String representation
Represents a token in MText parsing with its type, context, and data