InternalLinkTypeTonConnect.fromJson constructor

InternalLinkTypeTonConnect.fromJson(
  1. Map<String, dynamic> json
)

Parses a InternalLinkTypeTonConnect from TDLib JSON.

Implementation

factory InternalLinkTypeTonConnect.fromJson(Map<String, dynamic> json) =>
    InternalLinkTypeTonConnect(
      version: _readInt(json['version']),
      dappClientId: _readString(json['dapp_client_id']),
      connectRequest: _readObject(
        json['connect_request'],
        TonConnectConnectRequest.fromJson,
      ),
      returnStrategy: _readString(json['return_strategy']),
      rpcRequest: _readString(json['rpc_request']),
      traceId: _readString(json['trace_id']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );