Map<String, dynamic> toJson() { return { "accounts": { "addresses": addresses.map((e) => e.address).toList(), ...encoding.toJson(), } }; }