PaymentIntentSourceOrId.fromJson constructor
PaymentIntentSourceOrId.fromJson(
- Object? json
Implementation
factory PaymentIntentSourceOrId.fromJson(Object? json) {
if (json is String) {
return PaymentIntentSourceId(id: json);
}
return PaymentIntentSource.fromJson(json);
}