/**
 * Model for defining a Verifiable Credential
 */ export class VerifiableCredentialModel { /**
     * Verifiable credential contexts.
     */ '@context' : string [ ] ; constructor ( context ? , public type ? , public credentialSubject ? , public credentialStatus ? , public credentialRefresh ? ) { if ( context !== undefined ) { this [ '@context' ] = context ; } } param input populateFrom ( input ) { if ( input [ '@context' ] !== undefined ) { const arr = Array . from ( input [ '@context' ] ) ; this [ '@context' ] = arr . map ( c => < string > c ) ; } if ( input . type !== undefined ) { const arr = Array . from ( input . type ) ; this . type = arr . map ( t => < string > t ) ; } this . credentialSubject = input . credentialSubject ; this . credentialStatus = input . credentialStatus ; this . credentialRefresh = input . credentialRefresh ; } }