PaymentCardModel class Null safety
Payment card data model
- Inheritance
- Object
- PaymentCard
- PaymentCardModel
- Annotations
Constructors
- PaymentCardModel({required String id, required String userId, required String number, required int expirationMonth, required int expirationYear, required int cvc})
-
PaymentCardModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- cvc ↔ int
-
read / write, inherited
- expirationMonth ↔ int
-
read / write, inherited
- expirationYear ↔ int
-
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id ↔ String
-
read / write, inherited
- logo → dynamic
-
Map the card type to a logo resource asset
read-only, inherited
- number ↔ String
-
read / write, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- type → dynamic
-
read-only, inherited
- userId ↔ String
-
read / write, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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