Skip to main content

ExportedAsset

This is a model for a minimum exported version of an asset.

Properties

NameType
namestring
descriptionstring
createdGroupedTimestamp
rawFileFormat

Example

import { ExportedAsset } from '@pieces.app/pieces-os-client'

// TODO: Update the object below with actual values
const example: ExportedAsset = {
"name": null,
"description": null,
"created": null,
"raw": null,
}

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as ExportedAsset
console.log(exampleParsed)