CreditCard class
Class responsible for storing basic credit card information like cardNumber, expiryDate, cvv.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- CreditCard({required String cardNumber, required ExpirationDate expiryDate, required String cvv, required CreditCardConfig config})
-
CreditCard.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cardNumber → String
-
final
- config → CreditCardConfig
-
final
- cvv → String
-
final
- expiryDate → ExpirationDate
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited