<?php
/**
 * This code was generated by
 * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
 *
 * Twilio - Verify
 * This is the public Twilio REST API.
 *
 * NOTE: This class is auto generated by OpenAPI Generator.
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace Twilio\Rest\Verify\V2\Service;

use Twilio\Values;
abstract class NewChallengeModels
{
    /**
     * @property string $identity
     * @property string $factorSid
    */
    public static function createCreatePasskeysChallengeRequest(array $payload = []): CreatePasskeysChallengeRequest
    {
        return new CreatePasskeysChallengeRequest($payload);
    }

}

class CreatePasskeysChallengeRequest implements \JsonSerializable
{
    /**
     * @property string $identity
     * @property string $factorSid
    */
        protected $identity;
        protected $factorSid;
    public function __construct(array $payload = []) {
        $this->identity = Values::array_get($payload, 'identity');
        $this->factorSid = Values::array_get($payload, 'factor_sid');
    }

    public function toArray(): array
    {
        return $this->jsonSerialize();
    }

    public function jsonSerialize(): array
    {
        $jsonString = [
        ];
        if (isset($this->identity)) {
            $jsonString['identity'] = $this->identity;
        }
        if (isset($this->factorSid)) {
            $jsonString['factor_sid'] = $this->factorSid;
        }
        return $jsonString;
    }
}

