Converts a text message to the map representation, encodable to JSON.
@override Map<String, dynamic> toJson() => _$TextMessageToJson(this);