TokenData constructor

const TokenData({
  1. required String id,
  2. @JsonKey(name: 'created') required String created,
  3. required TokenType type,
  4. required bool livemode,
  5. BankAccount? bankAccount,
  6. CardData? card,
})

Implementation

const factory TokenData({
  /// Unique identifier of the token
  required String id,

  /// Timestamp when token was created
  @JsonKey(name: 'created') required String created,

  /// Type of the token
  required TokenType type,

  /// Whether or not the object exists in livemode
  required bool livemode,

  /// Bank account data
  BankAccount? bankAccount,

  /// Card data
  CardData? card,
}) = _TokenData;