{"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,YAAmB,SAAqC;EACtD,IAAI,SAAS;GACX,MAAM,EAAE,MAAM,GAAG,SAAS;GAE1B,sBAAsB,MAAM,IAAI;GAEhC,KAAK,OAAO;EACd;CACF;AAMF;AAJG,WAAA,CAAA,SAAS,GAAA,mBAAA,eAAA,MAAA,CAAA,GAAA,oBAAA,WAAA,QAAA,KAAA,CAAA"}