{"version":3,"file":"W3cV2TermsOfUse.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2TermsOfUse.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\n\nexport interface W3cV2TermsOfUseOptions {\n  type: string\n  [property: string]: unknown\n}\n\n/**\n * Represents a terms of use.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use\n */\nexport class W3cV2TermsOfUse {\n  public constructor(options: W3cV2TermsOfUseOptions) {\n    if (options) {\n      const { type, ...rest } = options\n\n      plainToClassFromExist(this, rest)\n\n      this.type = type\n    }\n  }\n\n  @IsString()\n  public type!: string;\n\n  [property: string]: unknown\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,kBAAb,MAA6B;CAC3B,AAAO,YAAY,SAAiC;AAClD,MAAI,SAAS;GACX,MAAM,EAAE,MAAM,GAAG,SAAS;AAE1B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,OAAO;;;;YAIf,UAAU"}