PaymentCard constructor

PaymentCard({
  1. required String? cardNumber,
  2. required String? cvv,
  3. required dynamic expiryMonth1,
  4. required dynamic expiryYear1,
  5. String? holderName,
  6. String? addressLine_1,
  7. String? addressLine_2,
  8. String? addressLine_3,
  9. String? addressLine_4,
  10. String? addressPostCode,
  11. String? addressCountry1,
  12. String? countryName,
})

Implementation

PaymentCard(
    {required String? cardNumber,
    required String? cvv,
    required expiryMonth1,
    required expiryYear1,
    String? holderName,
    String? addressLine_1,
    String? addressLine_2,
    String? addressLine_3,
    String? addressLine_4,
    String? addressPostCode,
    String? addressCountry1,
    String? countryName}) {
  number = cardNumber;
  cvc = cvv;
  expiryMonth = expiryMonth1;
  expiryYear = expiryYear1;
  name = StringUtils.nullify(holderName);
  addressLine1 = StringUtils.nullify(addressLine_1);
  addressLine2 = StringUtils.nullify(addressLine_2);
  addressLine3 = StringUtils.nullify(addressLine_3);
  addressLine4 = StringUtils.nullify(addressLine_4);
  addressCountry = StringUtils.nullify(addressCountry1);
  addressPostalCode = StringUtils.nullify(addressPostCode);

  country = StringUtils.nullify(countryName);
  type = type;
}