import { CardApi } from "../api/cardApi" ; export class CardData { cardholderName : string ; brand : string ; number : string ; expMonth : string ; expYear : string ; code : string ; constructor ( data ? ) { if ( data == null ) { return ; } this . cardholderName = data . cardholderName ; this . brand = data . brand ; this . number = data . number ; this . expMonth = data . expMonth ; this . expYear = data . expYear ; this . code = data . code ; } }