Interface JsiiSerializable

All Known Implementing Classes:
JsiiObject

@Internal public interface JsiiSerializable
Marks a class as serializable from native to javascript. JsiiObject implements this as well as all generated jsii interfaces. The actual metadata needed for serialization is defined by the @Jsii annotations attached to these types, but Jackson doesn't support selecting serializers by annotations, so we needed a type as a marker. See JsiiObjectMapper for details.
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.fasterxml.jackson.core.TreeNode
    Serializes this object to JSON.
  • Method Details

    • $jsii$toJson

      @Internal default com.fasterxml.jackson.core.TreeNode $jsii$toJson()
      Serializes this object to JSON. The default behavior is to return an object reference. However, builders implement this method by emitting an actual JSON object of the key/values.
      Returns:
      the jsii/JSON representation of this object