PaymentSourceOrId.fromJson constructor
PaymentSourceOrId.fromJson(
- Object? json
Implementation
factory PaymentSourceOrId.fromJson(Object? json) {
if (json is String) {
return PaymentSourceId(id: json);
}
return PaymentSource.fromJson(json);
}