

const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.97.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.97.0/helpers/decorate.js');
const require_validators = require('../../../../utils/validators.js');
require('../../../../utils/index.js');
let class_transformer = require("class-transformer");
let class_validator = require("class-validator");

//#region src/modules/vc/models/credential/W3cV2CredentialSubject.ts
/**
* Represents a credential subject.
*
* @see https://www.w3.org/TR/vc-data-model-2.0/#credential-subject
*/
var W3cV2CredentialSubject = class {
	constructor(options) {
		if (options) {
			const { id, ...rest } = options;
			(0, class_transformer.plainToClassFromExist)(this, rest);
			this.id = id;
		}
	}
};
require_decorate.__decorate([
	(0, class_validator.IsOptional)(),
	require_validators.IsUri(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], W3cV2CredentialSubject.prototype, "id", void 0);

//#endregion
exports.W3cV2CredentialSubject = W3cV2CredentialSubject;