Map<String, dynamic> toJson() { return <String, dynamic>{ 'image_url': uriDataToString(qrCode), 'otp_secret': otpSecret, }; }