PaymentLinkOrId.fromJson constructor
PaymentLinkOrId.fromJson(
- Object? json
Implementation
factory PaymentLinkOrId.fromJson(Object? json) {
if (json is String) {
return PaymentLinkId(id: json);
}
return PaymentLink.fromJson(json);
}