BalanceTransactionSourceOrId.fromJson constructor

BalanceTransactionSourceOrId.fromJson(
  1. Object? json
)

Implementation

factory BalanceTransactionSourceOrId.fromJson(Object? json) {
  if (json is String) {
    return BalanceTransactionSourceId(id: json);
  }
  return BalanceTransactionSource.fromJson(json);
}