Map<String, dynamic> toJson() { return <String, dynamic>{ 'imageUrl': uriDataToString(imageUrl), 'totpSecret': totpSecret, }; }