import { __decorateMetadata } from "../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { JsonTransformer } from "@credo-ts/core";
import { Expose } from "class-transformer";
import { IsMimeType, IsOptional, IsString } from "class-validator";

//#region ../didcomm/src/modules/credentials/models/DidCommCredentialPreviewAttribute.ts
var DidCommCredentialPreviewAttribute = class {
	constructor(options) {
		this.mimeType = "text/plain";
		if (options) {
			this.name = options.name;
			this.mimeType = options.mimeType;
			this.value = options.value;
		}
	}
	toJSON() {
		return JsonTransformer.toJSON(this);
	}
};
__decorate([IsString(), __decorateMetadata("design:type", String)], DidCommCredentialPreviewAttribute.prototype, "name", void 0);
__decorate([
	Expose({ name: "mime-type" }),
	IsOptional(),
	IsMimeType(),
	__decorateMetadata("design:type", String)
], DidCommCredentialPreviewAttribute.prototype, "mimeType", void 0);
__decorate([IsString(), __decorateMetadata("design:type", String)], DidCommCredentialPreviewAttribute.prototype, "value", void 0);

//#endregion
export { DidCommCredentialPreviewAttribute };
//# sourceMappingURL=DidCommCredentialPreviewAttribute.mjs.map