writeValueAsComponentData

Serializes the given value as a SerializedComponentData encoded as a UTF-8 string.