CustomerCashBalanceTransactionOrId.fromJson constructor

CustomerCashBalanceTransactionOrId.fromJson(
  1. Object? json
)

Implementation

factory CustomerCashBalanceTransactionOrId.fromJson(Object? json) {
  if (json is String) {
    return CustomerCashBalanceTransactionId(id: json);
  }
  return CustomerCashBalanceTransaction.fromJson(json);
}