SourceTypeCard.fromJson constructor
SourceTypeCard.fromJson(
- Object? json
Implementation
factory SourceTypeCard.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SourceTypeCard(
addressLine1Check: map['address_line1_check'] == null
? null
: (map['address_line1_check'] as String),
addressZipCheck: map['address_zip_check'] == null
? null
: (map['address_zip_check'] as String),
brand: map['brand'] == null ? null : (map['brand'] as String),
country: map['country'] == null ? null : (map['country'] as String),
cvcCheck: map['cvc_check'] == null ? null : (map['cvc_check'] as String),
description:
map['description'] == null ? null : (map['description'] as String),
dynamicLast4: map['dynamic_last4'] == null
? null
: (map['dynamic_last4'] 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),
name: map['name'] == null ? null : (map['name'] as String),
threeDSecure: map['three_d_secure'] == null
? null
: (map['three_d_secure'] as String),
tokenizationMethod: map['tokenization_method'] == null
? null
: (map['tokenization_method'] as String),
);
}