PaymentLinkOrId.fromJson constructor

PaymentLinkOrId.fromJson(
  1. Object? json
)

Implementation

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