CustomerBalanceTransactionOrId.fromJson constructor

CustomerBalanceTransactionOrId.fromJson(
  1. Object? json
)

Implementation

factory CustomerBalanceTransactionOrId.fromJson(Object? json) {
  if (json is String) {
    return CustomerBalanceTransactionId(id: json);
  }
  return CustomerBalanceTransaction.fromJson(json);
}