func (creationOptions *PublicKeyCredentialCreationOptions) UnmarshalJSON(raw []byte) error {
	type Override PublicKeyCredentialCreationOptions
	var override struct {
		Override
		Challenge string `json:"challenge"`
		Timeout   int64  `json:"timeout"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}

	*creationOptions = PublicKeyCredentialCreationOptions(override.Override)
	creationOptions.Challenge, err = fromBase64URL(override.Challenge)
	if err != nil {
		return err
	}
	creationOptions.Timeout = time.Duration(override.Timeout) * time.Millisecond
	return nil
}
// UnmarshalJSON unmarshals the PublicKeyCredentialCreationOptions as JSON.
UnmarshalJSON unmarshals the PublicKeyCredentialCreationOptions as JSON.
// UnmarshalJSON unmarshals the PublicKeyCredentialCreationOptions as JSON .
func (creationOptions *PublicKeyCredentialCreationOptions) UnmarshalJSON(raw []byte) error {
	type Override PublicKeyCredentialCreationOptions
	var override struct {
		Override
		Challenge string `json:"challenge"`
		Timeout   int64  `json:"timeout"`
	}
	err := json.Unmarshal(raw, &override)
	if err != nil {
		return err
	}
	*creationOptions = PublicKeyCredentialCreationOptions(override.Override)
	creationOptions.Challenge, err = fromBase64URL(override.Challenge)
	if err != nil {
		return err
	}
	creationOptions.Timeout = time.Duration(override.Timeout) * time.Millisecond
	return nil
}
func ( creationOptions * PublicKeyCredentialCreationOptions ) UnmarshalJSON ( raw [ ] byte ) error { type Override PublicKeyCredentialCreationOptions var override struct { Override Challenge string `json:"challenge"` Timeout int64 `json:"timeout"` } err := json . Unmarshal ( raw , & override ) if err != nil { return err } * creationOptions = PublicKeyCredentialCreationOptions ( override . Override ) creationOptions . Challenge , err = fromBase64URL ( override . Challenge ) if err != nil { return err } creationOptions . Timeout = time . Duration ( override . Timeout ) * time . Millisecond return nil }
UnmarshalJSON unmarshals the PublicKeyCredentialCreationOptions as JSON.
UnmarshalJSON unmarshals the PublicKeyCredentialCreationOptions as JSON .