toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "token_id": tokenId,
      "masked_card_number": maskedCardNumber,
      if (cardholderName != null) "cardholder_name": cardholderName,
      "expiry_month": expiryMonth,
      "expiry_year": expiryYear,
      if (type != null) "type": type!.name,
      if (network != null) "network": network!.name,
      if (country != null) "country": country,
      if (issuer != null) "issuer": issuer,
      if (fingerprint != null) "fingerprint": fingerprint,
    };