Skip to main content

PersonModel

This is a PersonSpecific Model. and will let us know for all the assets that get attached to the person if, this person was attached via a model or just attached automatically. explanation here are the reason why a Person was attached to an asset.

Properties

NameType
assetReferencedAsset
modelReferencedModel
deletedGroupedTimestamp
explanationReferencedAnnotation

Example

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

// TODO: Update the object below with actual values
const example: PersonModel = {
"asset": null,
"model": null,
"deleted": null,
"explanation": 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 PersonModel
console.log(exampleParsed)