fromMap static method
Implementation
static Account fromMap(Map<String, dynamic> tonAddr) {
if (!tonAddr.containsKey('address')) {
throw TonConnectError('address not contains in ton_addr');
}
final account = Account();
account.address = tonAddr['address'];
account.chain = CHAIN.getChainByValue(tonAddr['network']);
account.walletStateInit = tonAddr['walletStateInit'];
account.publicKey =
tonAddr.containsKey('publicKey') ? tonAddr['publicKey'] : null;
return account;
}