IssuingNetworkTokenWalletProvider.fromJson constructor
IssuingNetworkTokenWalletProvider.fromJson(
- Object? json
Implementation
factory IssuingNetworkTokenWalletProvider.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return IssuingNetworkTokenWalletProvider(
accountId:
map['account_id'] == null ? null : (map['account_id'] as String),
accountTrustScore: map['account_trust_score'] == null
? null
: (map['account_trust_score'] as num).toInt(),
cardNumberSource: map['card_number_source'] == null
? null
: IssuingNetworkTokenWalletProviderCardNumberSource.fromJson(
map['card_number_source']),
cardholderAddress: map['cardholder_address'] == null
? null
: IssuingNetworkTokenAddress.fromJson(map['cardholder_address']),
cardholderName: map['cardholder_name'] == null
? null
: (map['cardholder_name'] as String),
deviceTrustScore: map['device_trust_score'] == null
? null
: (map['device_trust_score'] as num).toInt(),
hashedAccountEmailAddress: map['hashed_account_email_address'] == null
? null
: (map['hashed_account_email_address'] as String),
reasonCodes: map['reason_codes'] == null
? null
: (map['reason_codes'] as List<Object?>)
.map((el) =>
IssuingNetworkTokenWalletProviderReasonCodesItem.fromJson(el))
.toList(),
suggestedDecision: map['suggested_decision'] == null
? null
: IssuingNetworkTokenWalletProviderSuggestedDecision.fromJson(
map['suggested_decision']),
suggestedDecisionVersion: map['suggested_decision_version'] == null
? null
: (map['suggested_decision_version'] as String),
);
}