EphemeralKeyCreateOptions.fromJson constructor
EphemeralKeyCreateOptions.fromJson(
- Object? json
Implementation
factory EphemeralKeyCreateOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return EphemeralKeyCreateOptions(
customer: map['customer'] == null ? null : (map['customer'] as String),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
issuingCard:
map['issuing_card'] == null ? null : (map['issuing_card'] as String),
nonce: map['nonce'] == null ? null : (map['nonce'] as String),
verificationSession: map['verification_session'] == null
? null
: (map['verification_session'] as String),
);
}