import { RulesValidationError } from '../error_handling/RulesValidationError' ; /**
 * Model for defining a Trusted Issuer for a Verifiable Credential
 */ export class TrustedIssuerModel { param iss constructor ( public iss ? ) { } param input populateFrom ( input ) { const { iss } = input ; if ( ! ( iss && typeof iss === 'string' ) ) { throw new RulesValidationError ( 'Trusted issuer requires a valid DID for property \'iss\'.' ) ; } this . iss = iss ; } }