Map<String, dynamic> toJson() { return <String, dynamic>{ 'chain': chain, 'networkId': networkId, 'address': address, }; }