Open Mng12345 opened 1 year ago
As the title, i have a model type t, which's definition is below:
module Product = { type t = VideoToGif | GifEditor | GifCompress } module Event = { type businessPoint = { name: string, data: Js.Dict.t<string>, } type t = | EnterPage | LeavePage | BusinessPoint(businessPoint) } type t = { event: Event.t, product: Product.t, time: string, }
How to encode and decode the struct with type t?
I just found the answer in the documentation...... doc
There is still a problem that i don't know how to encode a struct with type Event.t
Event.t
As the title, i have a model type t, which's definition is below:
How to encode and decode the struct with type t?