PaymentIntentSourceOrId.fromJson constructor

PaymentIntentSourceOrId.fromJson(
  1. Object? json
)

Implementation

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