Map<String, dynamic> toJson() { return { 'xpub': xpub, 'role': role, 'index': index, 'address': address, }; }