@Override
  public void writeToParcel(Parcel pc, int flags) {
    // Using writeValue instead of writeString since mPin can be null.
    pc.writeValue(mPin);
    pc.writeSerializable(mIndex);
    pc.writeBooleanArray(new boolean[] { mIsHotp, mHotpCodeGenerationAllowed });
  }
Constructor of {@link PinInfo}.

@param index {@link AccountIndex} that owns the pin
@param isHotp represents whether the OTP type is TOTP or HOTP
java/com/google/android/apps/authenticator/otp/PinInfo.java