PaymentSourceOrId.fromJson constructor

PaymentSourceOrId.fromJson(
  1. Object? json
)

Implementation

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