TonConnectSession.fromJson constructor
Parses a TonConnectSession from TDLib JSON.
Implementation
factory TonConnectSession.fromJson(Map<String, dynamic> json) =>
TonConnectSession(
id: _readInt(json['id']),
dappClientId: _readString(json['dapp_client_id']),
walletClientId: _readString(json['wallet_client_id']),
creationDate: _readInt(json['creation_date']),
manifest: _readObject(json['manifest'], TonConnectManifest.fromJson),
nonce: _readString(json['nonce']),
state: _readObject(json['state'], TonConnectSessionState.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);