simple_examples
library
Classes
-
Product
-
Example 2: Product with Metadata
Shows how to store product variants and SEO data
-
SimpleItem
-
Example 3: Simple Model (No Additional Properties)
Shows traditional fixed schema for comparison
-
User
-
Example 1: User with Additional Properties
Shows how to store flexible user preferences
Properties
-
productSchema
→ ObjectSchema
-
Generated schema for Product
Product with flexible metadata
final
-
simpleItemSchema
→ ObjectSchema
-
Generated schema for SimpleItem
Simple model without additional properties
final
-
userSchema
→ ObjectSchema
-
Generated schema for User
User with flexible preferences
final
Functions
-
main()
→ void
-
Demo function to test the examples