deserialize static method

Transaction deserialize(
  1. Deserializer deserializer
)

Implementation

static Transaction deserialize(Deserializer deserializer) {
  int index = deserializer.deserializeUleb128AsU32();
  switch (index) {
    case 0:
      return UserTransaction.load(deserializer);
    default:
      throw ArgumentError("Unknown variant index for Transaction: $index");
  }
}