PaymentIntentOrId.fromJson constructor
PaymentIntentOrId.fromJson(
- Object? json
Implementation
factory PaymentIntentOrId.fromJson(Object? json) {
if (json is String) {
return PaymentIntentId(id: json);
}
return PaymentIntent.fromJson(json);
}