MetadataAccount.fromAccountInfo constructor

MetadataAccount.fromAccountInfo(
  1. AccountInfo info
)

Creates an instance of this class from an account info.

MetadataAccount.fromAccountInfo('AA==');

Implementation

factory MetadataAccount.fromAccountInfo(final AccountInfo info) {
  return info.isJson
    ? MetadataAccount.fromJson(info.jsonData)
    : MetadataAccount.fromBorshBase64(info.binaryData);
}