{"version":3,"file":"W3cV2RefreshService.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2RefreshService.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\n\nexport interface W3cV2RefreshServiceOptions {\n  type: string\n  [property: string]: unknown\n}\n\n/**\n * Represents a refresh service.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#refreshing\n */\nexport class W3cV2RefreshService {\n  public constructor(options: W3cV2RefreshServiceOptions) {\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,sBAAb,MAAiC;CAC/B,AAAO,YAAY,SAAqC;AACtD,MAAI,SAAS;GACX,MAAM,EAAE,MAAM,GAAG,SAAS;AAE1B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,OAAO;;;;YAIf,UAAU"}