MetadataAccount.fromAccountInfo constructor
MetadataAccount.fromAccountInfo(
- 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);
}