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