object function

SchemaType object(
  1. Map<String, SchemaType> properties
)

Creates a schema type representing an object with the given properties.

Implementation

SchemaType object(Map<String, SchemaType> properties) {
  return SchemaType.object(
      fields: properties.entries.map((e) => SchemaField(e.key, e.value)).toList());
}