SourceTypeCardPresent.fromJson constructor
SourceTypeCardPresent.fromJson(
- Object? json
Implementation
factory SourceTypeCardPresent.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceTypeCardPresent(
applicationCryptogram: map['application_cryptogram'] == null
? null
: (map['application_cryptogram'] as String),
applicationPreferredName: map['application_preferred_name'] == null
? null
: (map['application_preferred_name'] as String),
authorizationCode: map['authorization_code'] == null
? null
: (map['authorization_code'] as String),
authorizationResponseCode: map['authorization_response_code'] == null
? null
: (map['authorization_response_code'] as String),
brand: map['brand'] == null ? null : (map['brand'] as String),
country: map['country'] == null ? null : (map['country'] as String),
cvmType: map['cvm_type'] == null ? null : (map['cvm_type'] as String),
dataType: map['data_type'] == null ? null : (map['data_type'] as String),
dedicatedFileName: map['dedicated_file_name'] == null
? null
: (map['dedicated_file_name'] as String),
description:
map['description'] == null ? null : (map['description'] as String),
emvAuthData: map['emv_auth_data'] == null
? null
: (map['emv_auth_data'] as String),
evidenceCustomerSignature: map['evidence_customer_signature'] == null
? null
: (map['evidence_customer_signature'] as String),
evidenceTransactionCertificate:
map['evidence_transaction_certificate'] == null
? null
: (map['evidence_transaction_certificate'] as String),
expMonth:
map['exp_month'] == null ? null : (map['exp_month'] as num).toInt(),
expYear:
map['exp_year'] == null ? null : (map['exp_year'] as num).toInt(),
fingerprint:
map['fingerprint'] == null ? null : (map['fingerprint'] as String),
funding: map['funding'] == null ? null : (map['funding'] as String),
iin: map['iin'] == null ? null : (map['iin'] as String),
issuer: map['issuer'] == null ? null : (map['issuer'] as String),
last4: map['last4'] == null ? null : (map['last4'] as String),
posDeviceId: map['pos_device_id'] == null
? null
: (map['pos_device_id'] as String),
posEntryMode: map['pos_entry_mode'] == null
? null
: (map['pos_entry_mode'] as String),
readMethod:
map['read_method'] == null ? null : (map['read_method'] as String),
reader: map['reader'] == null ? null : (map['reader'] as String),
terminalVerificationResults: map['terminal_verification_results'] == null
? null
: (map['terminal_verification_results'] as String),
transactionStatusInformation:
map['transaction_status_information'] == null
? null
: (map['transaction_status_information'] as String),
);
}