toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'brand': brand,
    'last_4': last4,
    'expiry_month': expiryMonth,
    'expiry_year': expiryYear,
    'country': country,
    'logo': logo,
    'require_cvv': requireCvv,
    'cvv_config': cvvConfig?.toJson(),
    'type': methodTypeToJson(type),
  };
}