PECard class

A PayEngine card object.

This class represents a payment card stored with PayEngine, containing a secure token and associated card details.

Constructors

PECard({required String token, required CardData cardData, String? env})
Creates a new instance of PECard.
PECard.fromJson(Map<String, dynamic> json)
Parses a PECard object from a JSON map.
factory

Properties

cardData CardData
The associated card details.
final
env String?
The environment in which the card was created (e.g., "sandbox", "production").
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String
A unique token representing the card.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the PECard object to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited