deserialize static method
Implementation
static TransactionArgument deserialize(Deserializer deserializer) {
int index = deserializer.deserializeUleb128AsU32();
switch (index) {
case 0:
return TransactionArgumentU8.load(deserializer);
case 1:
return TransactionArgumentU64.load(deserializer);
case 2:
return TransactionArgumentU128.load(deserializer);
case 3:
return TransactionArgumentAddress.load(deserializer);
case 4:
return TransactionArgumentU8Vector.load(deserializer);
case 5:
return TransactionArgumentBool.load(deserializer);
case 6:
return TransactionArgumentU16.load(deserializer);
case 7:
return TransactionArgumentU32.load(deserializer);
case 8:
return TransactionArgumentU256.load(deserializer);
default:
throw ArgumentError("Unknown variant index for TransactionArgument: $index");
}
}