describeOutput method

  1. @override
SchemaType describeOutput(
  1. DogEngine engine,
  2. SchemaConfig config
)
override

Generates a SchemaType describing the output generated by this converter.

NOTE: Do not return a shared instance of SchemaType as it will be modified by the visitor. For such cases, use SchemaType.clone to create a new instance.

Implementation

@override
SchemaType describeOutput(DogEngine engine, SchemaConfig config) =>
    object({"id": integer(), "label": string()});