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