ReadCardInfo.fromJson constructor

ReadCardInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ReadCardInfo.fromJson(Map<String, dynamic> json) => ReadCardInfo(
      track1: json['track1'] as String?,
      track2: json['track2'] as String?,
      ic55Data: json['ic55Data'] as String?,
      encryptPin: json['encryptPin'] as String?,
      cardholderName: json['cardholderName'] as String?,
      encryptedSN: json['encryptedSN'] as String?,
      cardType: json['cardType'] as int,
      tusn: json['tusn'] as String?,
      cardNumber: json['cardNumber'] as String? ?? '',
      expDate: json['expDate'] as String?,
      track3: json['track3'] as String?,
      csn: json['csn'] as String?,
      requiresPin: json['requiresPin'] as bool? ?? false,
    );