Web3AuthResponse.fromJson constructor

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

Implementation

Web3AuthResponse.fromJson(Map<String, dynamic> json)
    : privKey = json['privKey'],
      userInfo = json['userInfo'] != null
          ? TorusUserInfo.fromJson(json['userInfo'])
          : null,
      ed25519PrivKey = json['ed25519PrivKey'],
      sessionId = json['sessionId'],
      error = json['error'];