Encode.object [ "blockId", Encode.guid data.Id "blockName", Encode.string data.Name "nestedType", Nested.Encode data.Nested ]
Decode.object (fun get -> { Block.Id = get.Required.Field "blockId" Decode.guid Block.Name = get.Required.Field "blockName" Decode.string Block.Nested = Nested.Decode get }
Encode.object [ "blockId", Encode.guid data.Id "blockName", Encode.string data.Name "nestedType", Nested.Encode data.Nested ]
Decode.object (fun get -> { Block.Id = get.Required.Field "blockId" Decode.guid Block.Name = get.Required.Field "blockName" Decode.string Block.Nested = Nested.Decode get }