TreasuryTransactionOrId.fromJson constructor

TreasuryTransactionOrId.fromJson(
  1. Object? json
)

Implementation

factory TreasuryTransactionOrId.fromJson(Object? json) {
  if (json is String) {
    return TreasuryTransactionId(id: json);
  }
  return TreasuryTransaction.fromJson(json);
}