export class SecretOption { readonly cardId : string ; readonly isValidOption : boolean ; public static create ( cardId ) { return Object . assign ( new SecretOption ( ) , { cardId : cardId , isValidOption : true , } as SecretOption ) ; } public update ( base ) { return Object . assign ( new SecretOption ( ) , this , base ) ; } }