/**
 * Representation of Verifiable Credential according to w3c spec.
 */ export class VerifiableCredentialAttribute { param json public static fromJson ( json ) { return new VerifiableCredentialAttribute ( json . type , json . issuer , json . credentialSubject ) ; } '@context' : string [ ] ; type : string [ ] ; issuer : string ; credentialSubject : any ; constructor ( type , issuer , credentialSubject ) { this [ '@context' ] = [ 'https://www.w3.org/2018/credentials/v1' ] ; this . type = type . includes ( 'VerifiableCredential' ) ? type : [ ... [ 'VerifiableCredential' ] , ... type ] ; this . issuer = issuer ; this . credentialSubject = credentialSubject ; } }