@Override
  public PaymentsMap toPaymentsMap() {
    final PaymentsMap paymentsMap = super.toPaymentsMap();

    paymentsMap.set("card", getCardData().toJSONObject());

    return paymentsMap;
  }
 public CardTokenData(final PaymentsMap paymentsMap) {
   super(paymentsMap);
   this.used = (boolean) paymentsMap.get("used");
   final JSONObject cardObject = (JSONObject) paymentsMap.get("card");
   this.cardData = new CardData(cardObject);
 }