toJson method

Map<String, dynamic> toJson()

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,
  };
}