Class that contains OTP code information, including the actual code and validity details.
The generated OTP code.
For HOTP, the current counter value after code generation. For TOTP, this will be -1.
For TOTP, a value from 0.0 to 1.0 indicating progress through the time window. For HOTP, this will be 0.0.
For TOTP, the time remaining in seconds before the code expires. For HOTP, this will be -1.
For TOTP, the total validity period in seconds. For HOTP, this will be 0.
Converts this code info to a JSON string representation.