SecurityTrailer.fromJson constructor
Creates a SecurityTrailer from JSON.
Implementation
factory SecurityTrailer.fromJson(Map<String, dynamic> json) {
return SecurityTrailer(
adyenCryptoVersion: json['AdyenCryptoVersion'] is int
? json['AdyenCryptoVersion'] as int
: int.tryParse(json['AdyenCryptoVersion']?.toString() ?? '') ?? 0,
hmac: json['Hmac']?.toString() ?? '',
keyIdentifier: json['KeyIdentifier']?.toString() ?? '',
keyVersion: json['KeyVersion'] is int
? json['KeyVersion'] as int
: int.tryParse(json['KeyVersion']?.toString() ?? '') ?? 0,
nonce: json['Nonce']?.toString() ?? '',
);
}