import { AsnProp, AsnType, AsnTypeTypes, OctetString } from '@peculiar/asn1-schema'; import { Level1DataType } from './level1-data-type'; @AsnType({ type: AsnTypeTypes.Sequence }) export class Level2DataType { @AsnProp({ type: OctetString, optional: true }) public level1Signature?: string; @AsnProp({ type: Level1DataType }) public level1Data: Level1DataType; constructor(params: Partial = {}) { Object.assign(this, params); } }