toJson method
Implementation
Map<String, dynamic> toJson() => {
'chainId': chainId,
'chainName': chainName,
'nativeCurrency': nativeCurrency?.toJson(),
'rpcUrls': rpcUrls,
'blockExplorerUrls': blockExplorerUrls,
'iconUrls': iconUrls,
};