Card class

A payment card.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Card({String? name, AddressPortable? billingAddress, String? lastDigits, Network? brand})
Card.fromJson(Map<String, dynamic> json)
factory

Properties

billingAddress AddressPortable?
The billing address for this card. Supports only the address_line_1, address_line_2, admin_area_1, admin_area_2, postal_code, and country_code properties.
final
brand Network?
The card brand or network. Typically used in the response.
final
hashCode int
The hash code for this object.
no setterinherited
lastDigits String?
The last digits of the payment card.
final
name String?
The card holder's name as it appears on the card.
final
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.
override

Operators

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