PaymentIntentVerifyMicrodepositsOptions.fromJson constructor
PaymentIntentVerifyMicrodepositsOptions.fromJson(
- Object? json
Implementation
factory PaymentIntentVerifyMicrodepositsOptions.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PaymentIntentVerifyMicrodepositsOptions(
amounts: map['amounts'] == null
? null
: (map['amounts'] as List<Object?>)
.map((el) => (el as num).toInt())
.toList(),
descriptorCode: map['descriptor_code'] == null
? null
: (map['descriptor_code'] as String),
expand: map['expand'] == null
? null
: (map['expand'] as List<Object?>)
.map((el) => (el as String))
.toList(),
);
}