object function
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());
}