fromXdr

Decodes an Asset from its XDR representation.

Return

Asset instance (AssetTypeNative, AssetTypeCreditAlphaNum4, or AssetTypeCreditAlphaNum12)

Parameters

xdr

The XDR Asset union

Throws

if the XDR discriminant is unknown