toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'chainId': chainHexId,
'chainName': name,
'nativeCurrency': {
'name': currency,
'symbol': currency,
'decimals': 18,
},
'rpcUrls': [
rpcUrl,
...extraRpcUrls,
],
'blockExplorerUrls': [
explorerUrl,
],
};
}