toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'email': email,
'address': address,
'chainId': chainId,
'userName': userName,
'smartAccountDeployed': smartAccountDeployed,
'preferredAccountType': preferredAccountType,
'self': self?.toJson(),
'peer': peer?.toJson(),
'provider': provider?.name,
};
}