Implementation for data types:
Bool
— represented asbool
.Int32
— represented asint
.Int64
— represented asint
.Float32
— represented asfloat
.Float64
— represented asfloat
.String
— represented asstring
.Option<T>
— represented as?T
.Vec<T>
— represented asarray
.Map<K, V>
— represented asarray
.Struct
— represented as a regular class.Enum
— represented as a class with const properties for each variant.OneOf
— represented as an abstract class with each variant inheriting from it.