toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'bin': bin,
    'brand': brand,
    'card_holder_name': cardHolderName,
    'country': country,
    'expiry_month': expiryMonth,
    'expiry_year': expiryYear,
    'issuer': issuer,
    'last_4': last4,
    'logo': logo,
    'payment_methods': paymentMethods,
    'requires_cvv': requiresCvv,
  };
}