tryFromAccountInfo static method

MetadataAccount? tryFromAccountInfo(
  1. AccountInfo? info
)

Creates an instance of this class from an account info.

Returns null if info is omitted.

MetadataAccount.tryFromAccountInfo('AA==');

Implementation

static MetadataAccount? tryFromAccountInfo(final AccountInfo? info)
  => info != null ? MetadataAccount.fromAccountInfo(info) : null;