Class ModelSerializer

java.lang.Object
software.amazon.smithy.model.shapes.ModelSerializer

public final class ModelSerializer extends Object
Serializes a Model to an ObjectNode.

The serialized value sorts all map key-value pairs so that they contain a consistent key ordering, reducing noise in diffs based on serialized model.

After serializing to an ObjectNode, the node can then be serialized to formats like JSON, YAML, Ion, etc.