fromXdr

Decodes an Operation from its XDR representation.

This is a factory method that creates the appropriate Operation subclass based on the XDR operation type.

Return

The decoded Operation instance

Parameters

xdr

The XDR Operation object

Throws

if the operation type is unknown